From 93768f4d4a893e5e76954dcef0d5df5656c774c5 Mon Sep 17 00:00:00 2001 From: sopheedaire Date: Sat, 6 Jan 2024 11:44:46 +0800 Subject: [PATCH] Add styles for student --- .../StatusTextColor/StatusTextColor.tsx | 2 +- .../TransactionEntry/TransactionEntry.tsx | 241 ++++++++---------- src/Pages/DashboardPage/DashboardPage.tsx | 2 +- src/styles.tsx | 38 +++ 4 files changed, 141 insertions(+), 142 deletions(-) diff --git a/src/Components/StatusTextColor/StatusTextColor.tsx b/src/Components/StatusTextColor/StatusTextColor.tsx index 17695fb..4354cff 100644 --- a/src/Components/StatusTextColor/StatusTextColor.tsx +++ b/src/Components/StatusTextColor/StatusTextColor.tsx @@ -11,7 +11,7 @@ export default function StatusTextColor(status: string) { status === "Finalized" || status === "Borrowed" ) { - return colors.green; + return colors.dark_green; } else { return colors.red; } diff --git a/src/Components/TransactionEntry/TransactionEntry.tsx b/src/Components/TransactionEntry/TransactionEntry.tsx index ca8e9d5..2a47bff 100644 --- a/src/Components/TransactionEntry/TransactionEntry.tsx +++ b/src/Components/TransactionEntry/TransactionEntry.tsx @@ -2,174 +2,135 @@ import styles from "../../styles"; import { colors } from "../../styles"; import { TransactionType } from "../Types/Types"; import StatusTextColor from "../StatusTextColor/StatusTextColor"; +import CircleSharpIcon from '@mui/icons-material/CircleSharp'; export interface props { transaction: TransactionType; onClick?: React.MouseEventHandler; -} + + +} export default function TransactionEntry(props: props) { + + return ( ); } diff --git a/src/Pages/DashboardPage/DashboardPage.tsx b/src/Pages/DashboardPage/DashboardPage.tsx index 89ce800..11f01e2 100644 --- a/src/Pages/DashboardPage/DashboardPage.tsx +++ b/src/Pages/DashboardPage/DashboardPage.tsx @@ -19,7 +19,7 @@ export default function Dashboard() {