website refactor
This commit is contained in:
@@ -4,7 +4,7 @@ import { Text } from '@/ui/Text';
|
||||
|
||||
interface JoinRequestItemProps {
|
||||
driverId: string;
|
||||
requestedAt: string | Date;
|
||||
formattedRequestedAt: string;
|
||||
onApprove: () => void;
|
||||
onReject: () => void;
|
||||
isApproving?: boolean;
|
||||
@@ -13,7 +13,7 @@ interface JoinRequestItemProps {
|
||||
|
||||
export function JoinRequestItem({
|
||||
driverId,
|
||||
requestedAt,
|
||||
formattedRequestedAt,
|
||||
onApprove,
|
||||
onReject,
|
||||
isApproving,
|
||||
@@ -47,7 +47,7 @@ export function JoinRequestItem({
|
||||
<Stack flexGrow={1}>
|
||||
<Text color="text-white" weight="medium" block>{driverId}</Text>
|
||||
<Text size="sm" color="text-gray-400" block>
|
||||
Requested {new Date(requestedAt).toLocaleDateString()}
|
||||
Requested {formattedRequestedAt}
|
||||
</Text>
|
||||
</Stack>
|
||||
</Stack>
|
||||
|
||||
Reference in New Issue
Block a user