fix_upload

This commit is contained in:
Yasiu1376
2023-07-24 10:51:58 +03:30
parent 9f4d8697f5
commit 4f43d60285

View File

@@ -1,4 +1,4 @@
import { Box, Button, Typography } from "@mui/material";
import { Box, Button, Paper, Typography } from "@mui/material";
import { useTranslations } from "next-intl";
import Image from "next/image";
import AddIcon from "@mui/icons-material/Add";
@@ -96,17 +96,24 @@ const UploadSystem = ({
borderTopLeftRadius: "10px",
borderBottom: "unset",
padding: "5px",
overflow: "hidden",
}}
onClick={handleClick}
>
<Image
width={imageSize[0]}
height={imageSize[1]}
src={selectedImage}
priority
alt={imageAlt}
style={{ padding: 5 }}
/>
<Paper
elevation={0}
sx={{
width: "100%",
height: "100%",
display: "flex",
alignItems: "center",
justifyContent: "center",
backgroundSize: "contain",
backgroundRepeat: "no-repeat",
backgroundPosition: "center",
backgroundImage: `url(${selectedImage})`,
}}
></Paper>
</Box>
) : (
fileType &&