TF-94 Number FontFamily Added To Project/Jalali Moment Added To Project/ Permission Format Appended To Sidebar Menu

This commit is contained in:
2023-08-30 15:34:44 +03:30
parent 67e389062f
commit 59e652c182
5 changed files with 43 additions and 27 deletions

View File

@@ -16,7 +16,6 @@ const UploadSystem = ({
}) => {
const t = useTranslations();
const fileInputRef = useRef(null);
const [selectedImage, setSelectedImage] = useState(default_image || "/images/upload-image.svg");
const [fileType, setFileType] = useState(null);
const [fileName, setFileName] = useState("");
@@ -39,16 +38,12 @@ const UploadSystem = ({
border: "1px dashed #d32f2f",
borderRadius: "5px",
padding: "5px",
width: '200px',
height: '200px'
} : {
cursor: "pointer",
objectFit: "contain",
border: "1px dashed #e1e1e1",
borderRadius: "5px",
padding: "5px",
width: '200px',
height: '200px'
}
const handleClick = () => {
@@ -72,13 +67,16 @@ const UploadSystem = ({
>
{label}
</Typography>
{selectedImage === "/images/upload-image.svg" ? (
<Box sx={{position: "relative"}}>
</Box>
{selectedImage === "/images/upload-image.svg" || selectedImage === default_image ? (
<Image
src={selectedImage}
priority
alt={imageAlt}
width={0}
height={0}
width={200}
height={200}
onClick={handleClick}
style={uploadBoxStyle}
/>
@@ -87,8 +85,8 @@ const UploadSystem = ({
src={selectedImage}
priority
alt={imageAlt}
width={0}
height={0}
width={200}
height={200}
onClick={handleClick}
style={uploadBoxStyle}
/>