2023-07-25 07:47:20 +00:00
|
|
|
|
import { Box, Typography } from "@mui/material";
|
|
|
|
|
|
|
|
|
|
type UserTabProps = {
|
|
|
|
|
user: {
|
|
|
|
|
id: number;
|
|
|
|
|
registrationDate: string;
|
|
|
|
|
email: string;
|
|
|
|
|
phone: string;
|
|
|
|
|
type: string;
|
|
|
|
|
fullname: string;
|
|
|
|
|
walletBalance: string;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const UserTab = ({ user }: UserTabProps) => (
|
2023-07-25 13:07:06 +00:00
|
|
|
|
<Box sx={{ display: "flex", columnGap: "15px", padding: "25px" }}>
|
2023-07-25 07:47:20 +00:00
|
|
|
|
<Box sx={{ maxWidth: "300px", width: "100%" }}>
|
|
|
|
|
<Box sx={{ marginBottom: "25px" }}>
|
2023-07-25 13:07:06 +00:00
|
|
|
|
<Typography sx={{ lineHeight: "20px" }}>ID</Typography>
|
|
|
|
|
<Typography sx={{ lineHeight: "20px", fontWeight: "bold" }}>
|
2023-07-25 07:47:20 +00:00
|
|
|
|
{" "}
|
|
|
|
|
{user.id}
|
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box sx={{ marginBottom: "25px" }}>
|
2023-07-25 13:07:06 +00:00
|
|
|
|
<Typography sx={{ lineHeight: "20px" }}>Дата регистрации</Typography>
|
|
|
|
|
<Typography sx={{ lineHeight: "20px", fontWeight: "bold" }}>
|
2023-07-25 07:47:20 +00:00
|
|
|
|
{user.registrationDate}
|
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box sx={{ marginBottom: "25px" }}>
|
2023-07-25 13:07:06 +00:00
|
|
|
|
<Typography sx={{ lineHeight: "20px" }}>Email</Typography>
|
|
|
|
|
<Typography sx={{ lineHeight: "20px", fontWeight: "bold" }}>
|
2023-07-25 07:47:20 +00:00
|
|
|
|
{user.email}
|
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box sx={{ marginBottom: "25px" }}>
|
2023-07-25 13:07:06 +00:00
|
|
|
|
<Typography sx={{ lineHeight: "20px" }}>Телефон</Typography>
|
|
|
|
|
<Typography sx={{ lineHeight: "20px", fontWeight: "bold" }}>
|
2023-07-25 07:47:20 +00:00
|
|
|
|
{user.phone}
|
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box sx={{ marginBottom: "25px" }}>
|
2023-07-25 13:07:06 +00:00
|
|
|
|
<Typography sx={{ lineHeight: "20px" }}>Тип:</Typography>
|
|
|
|
|
<Typography sx={{ lineHeight: "20px", fontWeight: "bold" }}>
|
2023-07-25 07:47:20 +00:00
|
|
|
|
{user.type}
|
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box sx={{ maxWidth: "300px", width: "100%" }}>
|
|
|
|
|
<Box sx={{ marginBottom: "25px" }}>
|
2023-07-25 13:07:06 +00:00
|
|
|
|
<Typography sx={{ lineHeight: "20px" }}>ФИО:</Typography>
|
|
|
|
|
<Typography sx={{ lineHeight: "20px", fontWeight: "bold" }}>
|
2023-07-25 07:47:20 +00:00
|
|
|
|
{user.fullname}
|
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
<Box sx={{ marginBottom: "25px" }}>
|
2023-07-25 13:07:06 +00:00
|
|
|
|
<Typography sx={{ lineHeight: "20px" }}>Внутренний кошелек</Typography>
|
|
|
|
|
<Typography sx={{ lineHeight: "20px", fontWeight: "bold" }}>
|
2023-07-25 07:47:20 +00:00
|
|
|
|
{user.walletBalance}
|
|
|
|
|
</Typography>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
</Box>
|
|
|
|
|
);
|