From 44dd8c30873f5d82aa3b875bbdd6925b1570bcc4 Mon Sep 17 00:00:00 2001 From: aaryansinha Date: Thu, 29 Aug 2024 11:29:28 -0400 Subject: [PATCH] Changes to Usercard - matching figma design except for start and end location yet --- public/Line 2.svg | 3 +++ public/destination.svg | 3 +++ public/start.svg | 3 +++ src/components/UserCards/UserCard.tsx | 27 +++++++++++++++------------ 4 files changed, 24 insertions(+), 12 deletions(-) create mode 100644 public/Line 2.svg create mode 100644 public/destination.svg create mode 100644 public/start.svg diff --git a/public/Line 2.svg b/public/Line 2.svg new file mode 100644 index 00000000..67bfb7e7 --- /dev/null +++ b/public/Line 2.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/destination.svg b/public/destination.svg new file mode 100644 index 00000000..1fede4ca --- /dev/null +++ b/public/destination.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/start.svg b/public/start.svg new file mode 100644 index 00000000..919b13f5 --- /dev/null +++ b/public/start.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/components/UserCards/UserCard.tsx b/src/components/UserCards/UserCard.tsx index 5536d66d..6f547033 100644 --- a/src/components/UserCards/UserCard.tsx +++ b/src/components/UserCards/UserCard.tsx @@ -114,15 +114,27 @@ export const UserCard = (props: UserCardProps): JSX.Element => { {/* second row */} + +
+

{props.otherUser.startPOILocation}

+ +

{props.otherUser.companyName}

+
+ +
+ {DaysWorkingDisplay(props.otherUser.daysWorking)} +
+ {/* third row */}
-

Hours:

+

Start:

{dayjs.tz(props.otherUser.startTime, "UTC").format("h:mm")} am

|

+

End:

{dayjs.tz(props.otherUser.endTime, "UTC").format("h:mm")} pm

@@ -130,18 +142,9 @@ export const UserCard = (props: UserCardProps): JSX.Element => {
{/* fourth row */} -
- {DaysWorkingDisplay(props.otherUser.daysWorking)} -
-
-

{props.otherUser.startPOILocation}

-
- -
-

{props.otherUser.companyName}

-
+ {/* request.message goes over here for displaying the request message */} @@ -151,7 +154,7 @@ export const UserCard = (props: UserCardProps): JSX.Element => { {props.otherUser.role === "DRIVER" && (
-
Open Seats:
+
Seats Available:
{props.otherUser.seatAvail}
)}