From 9e0f9df9de1a5c99657ddcef3b2eb101dd825b84 Mon Sep 17 00:00:00 2001 From: knownotunknown <78577376+knownotunknown@users.noreply.github.com> Date: Sat, 17 Feb 2024 11:06:36 -0600 Subject: [PATCH] feat: convert all LabelsAndDetails Components to Tailwind --- .../components/common/InfoCard/InfoCard.tsx | 51 +++++++------------ .../ScheduleTotalHoursAndCourses.tsx | 4 +- 2 files changed, 21 insertions(+), 34 deletions(-) diff --git a/src/views/components/common/InfoCard/InfoCard.tsx b/src/views/components/common/InfoCard/InfoCard.tsx index 352648b9..8ee69d5d 100644 --- a/src/views/components/common/InfoCard/InfoCard.tsx +++ b/src/views/components/common/InfoCard/InfoCard.tsx @@ -15,39 +15,26 @@ export function InfoCard({ bodyText }: React.PropsWithChildren): JSX.Element { return ( -
-
- - {titleText} - - - {bodyText} - - +
+ + {titleText} + + + {bodyText} + +
); } diff --git a/src/views/components/common/ScheduleTotalHoursAndCourses/ScheduleTotalHoursAndCourses.tsx b/src/views/components/common/ScheduleTotalHoursAndCourses/ScheduleTotalHoursAndCourses.tsx index a63e348a..72d7782a 100644 --- a/src/views/components/common/ScheduleTotalHoursAndCourses/ScheduleTotalHoursAndCourses.tsx +++ b/src/views/components/common/ScheduleTotalHoursAndCourses/ScheduleTotalHoursAndCourses.tsx @@ -17,7 +17,7 @@ export interface ScheduleTotalHoursAndCoursesProps { */ export default function ScheduleTotalHoursAndCoursess({ scheduleName, totalHours, totalCourses }: ScheduleTotalHoursAndCoursesProps): JSX.Element { return ( -
+
{`${totalHours} HOURS`}