Skip to content

Commit

Permalink
refactor: move customer info and order history to the side
Browse files Browse the repository at this point in the history
  • Loading branch information
psanders committed Nov 25, 2023
1 parent b0675be commit a8a28af
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions mods/frontoffice/src/components/chat/customer/CustomerInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,20 +76,26 @@ export const CustomerInfo: React.FC<CustomerInfoProps> = ({
{!showOrders ? (
<>
<CardContent>
<Typography
sx={{ fontSize: 14 }}
color="text.secondary"
gutterBottom
>
Birthday {profile.birthday}
</Typography>
{profile.birthday && (
<Typography
sx={{ fontSize: 14 }}
color="text.secondary"
gutterBottom
>
Birthday {profile.birthday}
</Typography>
)}
<Typography variant="h5" component="div">
{profile.name}
</Typography>
<Typography sx={{ mb: 1.5 }} color="text.secondary">
{profile.email}
<br />
{profile.phone}
{profile.phone && (
<>
<br />
{profile.phone}
</>
)}
</Typography>
<Typography variant="body2">
{profile.note}
Expand Down

0 comments on commit a8a28af

Please sign in to comment.