TF-94 Number FontFamily Added To Project/Jalali Moment Added To Project/ Permission Format Appended To Sidebar Menu
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user