diff --git a/frontend/src/components/ActionConfirmation.tsx b/frontend/src/components/ActionConfirmation.tsx index fd066ea8..872841c9 100644 --- a/frontend/src/components/ActionConfirmation.tsx +++ b/frontend/src/components/ActionConfirmation.tsx @@ -64,11 +64,11 @@ import { IoIosWarning } from "react-icons/io"; {/* Buttons */}
-
diff --git a/frontend/src/components/Button.tsx b/frontend/src/components/Button.tsx index dc5a300c..5d073dd6 100644 --- a/frontend/src/components/Button.tsx +++ b/frontend/src/components/Button.tsx @@ -31,27 +31,27 @@ export default function Button({ className={` px-4 py-2 rounded-3xl font-medium text-black border-2 active:bg-primary-900 active:border-primary-900 active:text-white - h-fit flex-grow-0 items-center justify-center + h-fit flex-grow-0 items-center justify-center hover:border-primary-900 transition-opacity flex whitespace-nowrap ${className} ${ - disabled ? "cursor-not-allowed opacity-50" : "hover:opacity-90" + disabled ? "cursor-not-allowed opacity-50" : "hover:opacity-85" } `} > {logo && logoPosition === "left" && ( - - + + )} {text} {logo && logoPosition === "right" && ( - - + + )} {logo && logoPosition === "center" && ( - - + + )} diff --git a/frontend/src/components/InputField.tsx b/frontend/src/components/InputField.tsx index 4f850af5..71b5e287 100644 --- a/frontend/src/components/InputField.tsx +++ b/frontend/src/components/InputField.tsx @@ -21,9 +21,9 @@ export default function InputField({ }: InputFieldProps) { return (
-
{/* map over list of source and put casheditlineitem for each */} -
+
{lineItems.map((item) => (
checked ? `$${value.toLocaleString()}` : `${value}` } diff --git a/frontend/src/main-page/dashboard/components/GanttYearGrantTimeline.tsx b/frontend/src/main-page/dashboard/components/GanttYearGrantTimeline.tsx index a7af8e0f..e0d84d8b 100644 --- a/frontend/src/main-page/dashboard/components/GanttYearGrantTimeline.tsx +++ b/frontend/src/main-page/dashboard/components/GanttYearGrantTimeline.tsx @@ -152,7 +152,7 @@ export const GanttYearGrantTimeline = observer( : ""} {recentYear}
-
+
{ border: "1px solid lightgray", boxShadow: "0 2px 8px rgba(0,0,0,0.1)", }} + cursor={{ fill: "rgba(0,0,0,0.1)" }} formatter={(value: number) => `$${value.toLocaleString()}`} /> diff --git a/frontend/src/main-page/dashboard/styles/Dashboard.css b/frontend/src/main-page/dashboard/styles/Dashboard.css index 016d9f6d..fbe56795 100644 --- a/frontend/src/main-page/dashboard/styles/Dashboard.css +++ b/frontend/src/main-page/dashboard/styles/Dashboard.css @@ -8,40 +8,6 @@ body { box-sizing: border-box; } -/* Hide the default checkbox */ -input[type="checkbox"] { - appearance: none; - -webkit-appearance: none; /* For Safari */ - margin: 0; /* Remove default margin */ - /* Additional styling for the custom checkbox container */ - width: 1.2em; - height: 1.2em; - border: 2px solid lightgray; - border-radius: 4px; - display: inline-block; - vertical-align: middle; - position: relative; -} - -/* Style the custom checkmark using a pseudo-element */ -input[type="checkbox"]::before { - content: ""; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%) rotate(45deg); - width: 0.4em; - height: 0.8em; - border: solid white; - border-width: 0 2px 2px 0; - display: none; /* Hidden by default */ -} - -input[type="checkbox"]:checked::before { - display: block; /* Show the checkmark */ - border-color: black; -} - /* Main container styling */ .dashboard-page { display: flex; diff --git a/frontend/src/main-page/grants/edit-grant/EditGrant.tsx b/frontend/src/main-page/grants/edit-grant/EditGrant.tsx index 8a0dfc07..603ae756 100644 --- a/frontend/src/main-page/grants/edit-grant/EditGrant.tsx +++ b/frontend/src/main-page/grants/edit-grant/EditGrant.tsx @@ -198,7 +198,7 @@ const EditGrant: React.FC<{ {/* Divider */} {grantToEdit && (

-
)}
diff --git a/frontend/src/main-page/grants/edit-grant/components/AddContactPopup.tsx b/frontend/src/main-page/grants/edit-grant/components/AddContactPopup.tsx index b74830ba..5c312e5f 100644 --- a/frontend/src/main-page/grants/edit-grant/components/AddContactPopup.tsx +++ b/frontend/src/main-page/grants/edit-grant/components/AddContactPopup.tsx @@ -88,7 +88,7 @@ const AddContactPopup = observer( {/* Contact Type Selector */}
- {(["BCAN", "Granter"] as ContactType[]).map((t) => ( + {(["BCAN", "Granter"] as ContactType[]).filter((t): t is ContactType => form.bcanPocEmail ? t === "Granter" : form.grantProviderPocEmail ? t === "BCAN" : true).map((t) => (
diff --git a/frontend/src/main-page/grants/grant-view/components/StatusIndicator.tsx b/frontend/src/main-page/grants/grant-view/components/StatusIndicator.tsx index 48d57ef0..61c53c3a 100644 --- a/frontend/src/main-page/grants/grant-view/components/StatusIndicator.tsx +++ b/frontend/src/main-page/grants/grant-view/components/StatusIndicator.tsx @@ -19,7 +19,7 @@ const StatusIndicator: React.FC = ({ curStatus, onClick, a return (