Client side picture upload
This commit is contained in:
1 parent
74da41bf3b
commit
95a30c5a8d
6 files changed
+310
-122
No files matched your search
@@ -0,0 +1,18 @@
|
|||||||
|
.progress-bar-container{
|
||||||
|
background-color: #fafafa;
|
||||||
|
padding: var(--env-var-spacing-1-plus);
|
||||||
|
}
|
||||||
|
.progress-bar-container h2.MuiTypography-root,
|
||||||
|
.progress-bar-container p.MuiTypography-root {
|
||||||
|
color: var(--env-var-color-2);
|
||||||
|
font-size: var(--env-var-font-size-medium);
|
||||||
|
}
|
||||||
|
.progress-bar-container p.MuiTypography-root {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
.progress-bar-container p.MuiTypography-root:has(span){
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.progress-bar-container p.MuiTypography-root span {
|
||||||
|
padding-left: 2px;
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
import React, { useState } from "react";
|
||||||
|
import { useTheme } from "@emotion/react";
|
||||||
|
import {
|
||||||
|
Box,
|
||||||
|
IconButton,
|
||||||
|
LinearProgress,
|
||||||
|
Stack,
|
||||||
|
Typography,
|
||||||
|
} from "@mui/material";
|
||||||
|
import CloseIcon from "@mui/icons-material/Close";
|
||||||
|
import "./index.css";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param {Object} props - The component props.
|
||||||
|
* @returns {JSX.Element} The rendered component.
|
||||||
|
*/
|
||||||
|
|
||||||
|
const ProgressUpload = ({
|
||||||
|
icon,
|
||||||
|
label,
|
||||||
|
size,
|
||||||
|
progress = 0,
|
||||||
|
onClick,
|
||||||
|
}) => {
|
||||||
|
const theme = useTheme();
|
||||||
|
return (
|
||||||
|
<Box
|
||||||
|
className="progress-bar-container"
|
||||||
|
mt="20px"
|
||||||
|
sx={{
|
||||||
|
minWidth: "200px",
|
||||||
|
height: "fit-content",
|
||||||
|
borderRadius: `${theme.shape.borderRadius}px`,
|
||||||
|
border: `solid 1px ${theme.palette.otherColors.graishWhite}`,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<Stack direction="row" mb="10px" gap="10px" alignItems="flex-end">
|
||||||
|
{icon ? (
|
||||||
|
<IconButton
|
||||||
|
sx={{
|
||||||
|
backgroundColor: theme.palette.otherColors.white,
|
||||||
|
pointerEvents: "none",
|
||||||
|
borderRadius: `${theme.shape.borderRadius}px`,
|
||||||
|
border: `solid ${theme.shape.borderThick}px ${theme.palette.otherColors.graishWhite}`,
|
||||||
|
boxShadow: theme.shape.boxShadow,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{icon}
|
||||||
|
</IconButton>
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)}
|
||||||
|
<Box>
|
||||||
|
<Typography variant="h4" component="h2" mb="5px">
|
||||||
|
{label}
|
||||||
|
</Typography>
|
||||||
|
<Typography variant="h4" component="p">
|
||||||
|
{size}
|
||||||
|
</Typography>
|
||||||
|
</Box>
|
||||||
|
<IconButton
|
||||||
|
onClick={onClick}
|
||||||
|
sx={{
|
||||||
|
alignSelf: "flex-start",
|
||||||
|
ml: "auto",
|
||||||
|
mr: "-5px",
|
||||||
|
mt: "-5px",
|
||||||
|
padding: "5px",
|
||||||
|
"&:focus": {
|
||||||
|
outline: "none",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CloseIcon
|
||||||
|
sx={{
|
||||||
|
fontSize: "20px",
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</IconButton>
|
||||||
|
</Stack>
|
||||||
|
<Stack direction="row" alignItems="center">
|
||||||
|
<Box sx={{ width: "100%", mr: "10px" }}>
|
||||||
|
<LinearProgress
|
||||||
|
variant="determinate"
|
||||||
|
value={progress}
|
||||||
|
sx={{
|
||||||
|
width: "100%",
|
||||||
|
height: "10px",
|
||||||
|
borderRadius: theme.shape.borderRadius,
|
||||||
|
maxWidth: "500px",
|
||||||
|
backgroundColor: theme.palette.otherColors.graishWhite,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
|
<Typography variant="h4" component="p" sx={{ minWidth: "max-content" }}>
|
||||||
|
{progress}
|
||||||
|
<span>%</span>
|
||||||
|
</Typography>
|
||||||
|
</Stack>
|
||||||
|
</Box>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default ProgressUpload;
|
||||||
@@ -1,14 +1,7 @@
|
|||||||
import { useTheme } from "@emotion/react";
|
import { useTheme } from "@emotion/react";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
import TabPanel from "@mui/lab/TabPanel";
|
import TabPanel from "@mui/lab/TabPanel";
|
||||||
import {
|
import { Box, Divider, Modal, Stack, Typography } from "@mui/material";
|
||||||
Box,
|
|
||||||
Divider,
|
|
||||||
IconButton,
|
|
||||||
Modal,
|
|
||||||
Stack,
|
|
||||||
Typography,
|
|
||||||
} from "@mui/material";
|
|
||||||
import ButtonSpinner from "../../ButtonSpinner";
|
import ButtonSpinner from "../../ButtonSpinner";
|
||||||
import Button from "../../Button";
|
import Button from "../../Button";
|
||||||
import EmailTextField from "../../TextFields/Email/EmailTextField";
|
import EmailTextField from "../../TextFields/Email/EmailTextField";
|
||||||
@@ -18,8 +11,8 @@ import { editProfileValidation } from "../../../Validation/validation";
|
|||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
import { update } from "../../../Features/Auth/authSlice";
|
import { update } from "../../../Features/Auth/authSlice";
|
||||||
import ImageField from "../../TextFields/Image";
|
import ImageField from "../../TextFields/Image";
|
||||||
import DoDisturbAltIcon from "@mui/icons-material/DoDisturbAlt";
|
import ImageIcon from "@mui/icons-material/Image";
|
||||||
import CloseIcon from "@mui/icons-material/Close";
|
import ProgressUpload from "../../ProgressBars";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ProfilePanel component displays a form for editing user profile information
|
* ProfilePanel component displays a form for editing user profile information
|
||||||
@@ -78,15 +71,64 @@ const ProfilePanel = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
//TODO - implement delete profile picture function
|
//TODO - add setPicture state to localData
|
||||||
|
const [picture, setPicture] = useState();
|
||||||
|
const [uploadProgress, setUploadProgress] = useState(0);
|
||||||
|
const [isUploading, setIsUploading] = useState(false);
|
||||||
|
const handlePicture = (event) => {
|
||||||
|
const pic = event.target.files[0];
|
||||||
|
console.log(pic);
|
||||||
|
//TODO - add setPicture state to localData
|
||||||
|
setPicture({ name: pic.name, type: pic.type, size: formatBytes(pic.size) });
|
||||||
|
setIsUploading(true);
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
//TODO - add setPicture state to localData
|
||||||
|
setPicture((prev) => ({ ...prev, src: URL.createObjectURL(pic) }));
|
||||||
|
}, 1500);
|
||||||
|
|
||||||
|
let progress = 0;
|
||||||
|
const interval = setInterval(() => {
|
||||||
|
progress += 10;
|
||||||
|
setUploadProgress(progress);
|
||||||
|
if (progress >= 100) {
|
||||||
|
clearInterval(interval);
|
||||||
|
}
|
||||||
|
}, 150);
|
||||||
|
};
|
||||||
|
const formatBytes = (bytes) => {
|
||||||
|
if (bytes === 0) return "0 Bytes";
|
||||||
|
const k = 1024;
|
||||||
|
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
||||||
|
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + " MB";
|
||||||
|
};
|
||||||
|
const handleCancelUpload = () => {
|
||||||
|
//TODO - add setPicture state to localData
|
||||||
|
setPicture(null);
|
||||||
|
setUploadProgress(0);
|
||||||
|
setIsUploading(false);
|
||||||
|
};
|
||||||
|
const handleClosePictureModal = () => {
|
||||||
|
setIsOpen("");
|
||||||
|
setUploadProgress(0);
|
||||||
|
setIsUploading(false);
|
||||||
|
};
|
||||||
|
|
||||||
|
//TODO - revisit once localData is set up properly
|
||||||
const handleDeletePicture = () => {
|
const handleDeletePicture = () => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
//TODO - add setPicture state to localData
|
||||||
|
setPicture(null);
|
||||||
setLoading(false);
|
setLoading(false);
|
||||||
}, 2000);
|
}, 2000);
|
||||||
};
|
};
|
||||||
//TODO - implement update profile function
|
//TODO - implement update profile function
|
||||||
const handleUpdatePicture = () => {};
|
const handleUpdatePicture = () => {
|
||||||
|
setIsOpen("");
|
||||||
|
setUploadProgress(0);
|
||||||
|
setIsUploading(false);
|
||||||
|
};
|
||||||
//TODO - implement delete account function
|
//TODO - implement delete account function
|
||||||
const handleDeleteAccount = () => {};
|
const handleDeleteAccount = () => {};
|
||||||
//TODO - implement save profile function
|
//TODO - implement save profile function
|
||||||
@@ -199,7 +241,7 @@ const ProfilePanel = () => {
|
|||||||
<Stack className="row-stack" direction="row" alignItems="center">
|
<Stack className="row-stack" direction="row" alignItems="center">
|
||||||
{/* TODO - Update placeholder values with redux data */}
|
{/* TODO - Update placeholder values with redux data */}
|
||||||
<Avatar
|
<Avatar
|
||||||
src="/static/images/avatar/2.jpg"
|
src={picture ? picture.src : "/static/images/avatar/2.jpg"}
|
||||||
firstName={localData.firstname}
|
firstName={localData.firstname}
|
||||||
lastName={localData.lastname}
|
lastName={localData.lastname}
|
||||||
sx={{
|
sx={{
|
||||||
@@ -215,7 +257,6 @@ const ProfilePanel = () => {
|
|||||||
onClick={handleDeletePicture}
|
onClick={handleDeletePicture}
|
||||||
isLoading={loading}
|
isLoading={loading}
|
||||||
/>
|
/>
|
||||||
{/* TODO - modal popup for update pfp? */}
|
|
||||||
<Button
|
<Button
|
||||||
level="tertiary"
|
level="tertiary"
|
||||||
label="Update"
|
label="Update"
|
||||||
@@ -326,11 +367,10 @@ const ProfilePanel = () => {
|
|||||||
aria-labelledby="modal-update-picture"
|
aria-labelledby="modal-update-picture"
|
||||||
aria-describedby="update-profile-picture"
|
aria-describedby="update-profile-picture"
|
||||||
open={isModalOpen("picture")}
|
open={isModalOpen("picture")}
|
||||||
onClose={() => setIsOpen("")}
|
onClose={handleClosePictureModal}
|
||||||
disablePortal
|
disablePortal
|
||||||
>
|
>
|
||||||
<Stack
|
<Stack
|
||||||
gap="20px"
|
|
||||||
sx={{
|
sx={{
|
||||||
position: "absolute",
|
position: "absolute",
|
||||||
top: "50%",
|
top: "50%",
|
||||||
@@ -347,43 +387,44 @@ const ProfilePanel = () => {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Stack
|
<Typography id="modal-update-picture" variant="h4" component="h1">
|
||||||
direction="row"
|
Upload Image
|
||||||
mt="-10px"
|
</Typography>
|
||||||
justifyContent="space-between"
|
<ImageField
|
||||||
alignItems="center"
|
id="update-profile-picture"
|
||||||
>
|
picture={picture?.src}
|
||||||
<Typography id="modal-update-picture" variant="h4" component="h1">
|
onChange={handlePicture}
|
||||||
Upload Image
|
/>
|
||||||
</Typography>
|
{isUploading ? (
|
||||||
<IconButton
|
<ProgressUpload
|
||||||
onClick={() => setIsOpen("")}
|
icon={<ImageIcon />}
|
||||||
sx={{
|
label={picture?.name}
|
||||||
"&:focus": {
|
size={picture?.size}
|
||||||
outline: "none",
|
progress={uploadProgress}
|
||||||
},
|
onClick={handleCancelUpload}
|
||||||
}}
|
/>
|
||||||
>
|
) : (
|
||||||
<CloseIcon />
|
""
|
||||||
</IconButton>
|
)}
|
||||||
</Stack>
|
<Stack direction="row" mt="20px" gap="10px" justifyContent="flex-end">
|
||||||
<ImageField id="update-profile-picture" />
|
<Button
|
||||||
<Stack direction="row" mt="10px" justifyContent="space-between">
|
level="secondary"
|
||||||
<Button level="secondary" label="Edit" disabled />
|
label="Edit"
|
||||||
<Stack direction="row" gap="10px" justifyContent="flex-end">
|
disabled
|
||||||
<ButtonSpinner
|
sx={{ mr: "auto" }}
|
||||||
level="tertiary"
|
/>
|
||||||
label="Remove"
|
<ButtonSpinner
|
||||||
onClick={handleDeletePicture}
|
level="tertiary"
|
||||||
isLoading={loading}
|
label="Remove"
|
||||||
/>
|
onClick={handleCancelUpload}
|
||||||
<ButtonSpinner
|
isLoading={loading}
|
||||||
level="primary"
|
/>
|
||||||
label="Update"
|
<ButtonSpinner
|
||||||
onClick={handleUpdatePicture}
|
level="primary"
|
||||||
isLoading={isLoading}
|
label="Update"
|
||||||
/>
|
onClick={handleUpdatePicture}
|
||||||
</Stack>
|
isLoading={isLoading}
|
||||||
|
/>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import "./index.css";
|
|||||||
* @param {Object} props - The component props.
|
* @param {Object} props - The component props.
|
||||||
* @returns {JSX.Element} The rendered component.
|
* @returns {JSX.Element} The rendered component.
|
||||||
*/
|
*/
|
||||||
const ImageField = ({ id, onChange }) => {
|
const ImageField = ({ id, picture, onChange }) => {
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
|
|
||||||
const [isDragging, setIsDragging] = useState(false);
|
const [isDragging, setIsDragging] = useState(false);
|
||||||
@@ -20,77 +20,95 @@ const ImageField = ({ id, onChange }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<>
|
||||||
className="image-field-wrapper"
|
{!picture ? (
|
||||||
sx={{
|
<Box
|
||||||
position: "relative",
|
className="image-field-wrapper"
|
||||||
width: "fit-content",
|
mt="20px"
|
||||||
height: "fit-content",
|
|
||||||
border: "dashed",
|
|
||||||
borderRadius: theme.shape.borderRadius / 2,
|
|
||||||
borderSpacing: "10px",
|
|
||||||
borderColor: isDragging
|
|
||||||
? theme.palette.primary.main
|
|
||||||
: theme.palette.otherColors.graishWhite,
|
|
||||||
borderWidth: "2px",
|
|
||||||
transition: "0.2s",
|
|
||||||
"&:hover": {
|
|
||||||
borderColor: theme.palette.primary.main,
|
|
||||||
backgroundColor: "hsl(215, 87%, 51%, 0.05)",
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
onDragEnter={handleDragEnter}
|
|
||||||
onDragLeave={handleDragLeave}
|
|
||||||
onDrop={handleDragLeave}
|
|
||||||
>
|
|
||||||
<TextField
|
|
||||||
id={id}
|
|
||||||
type="file"
|
|
||||||
sx={{
|
|
||||||
"& .MuiInputBase-input[type='file']": {
|
|
||||||
opacity: 0,
|
|
||||||
cursor: "pointer",
|
|
||||||
padding: 10,
|
|
||||||
maxHeight: "300px",
|
|
||||||
height: "100%",
|
|
||||||
},
|
|
||||||
"& fieldset": {
|
|
||||||
padding: 0,
|
|
||||||
border: "none",
|
|
||||||
},
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Stack
|
|
||||||
className="custom-file-text"
|
|
||||||
alignItems="center"
|
|
||||||
gap="10px"
|
|
||||||
sx={{
|
|
||||||
position: "absolute",
|
|
||||||
top: "50%",
|
|
||||||
left: "50%",
|
|
||||||
transform: "translate(-50%, -50%)",
|
|
||||||
zIndex: "-1",
|
|
||||||
width: "100%",
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<IconButton
|
|
||||||
sx={{
|
sx={{
|
||||||
pointerEvents: "none",
|
position: "relative",
|
||||||
borderRadius: "2px",
|
height: "fit-content",
|
||||||
border: `solid 2px ${theme.palette.otherColors.graishWhite}`,
|
border: "dashed",
|
||||||
boxShadow: theme.shape.boxShadow,
|
borderRadius: `${theme.shape.borderRadius}px`,
|
||||||
|
borderColor: isDragging
|
||||||
|
? theme.palette.primary.main
|
||||||
|
: theme.palette.otherColors.graishWhite,
|
||||||
|
borderWidth: "2px",
|
||||||
|
transition: "0.2s",
|
||||||
|
"&:hover": {
|
||||||
|
borderColor: theme.palette.primary.main,
|
||||||
|
backgroundColor: "hsl(215, 87%, 51%, 0.05)",
|
||||||
|
},
|
||||||
}}
|
}}
|
||||||
|
onDragEnter={handleDragEnter}
|
||||||
|
onDragLeave={handleDragLeave}
|
||||||
|
onDrop={handleDragLeave}
|
||||||
>
|
>
|
||||||
<CloudUploadIcon />
|
<TextField
|
||||||
</IconButton>
|
id={id}
|
||||||
<Typography variant="h4" component="h2">
|
type="file"
|
||||||
<span>Click to upload</span> or drag and drop
|
onChange={onChange}
|
||||||
</Typography>
|
sx={{
|
||||||
<Typography variant="h4" component="p">
|
width: "100%",
|
||||||
(max. 800x400px)
|
"& .MuiInputBase-input[type='file']": {
|
||||||
</Typography>
|
opacity: 0,
|
||||||
</Stack>
|
cursor: "pointer",
|
||||||
</Box>
|
maxWidth: "500px",
|
||||||
|
minHeight: "175px"
|
||||||
|
},
|
||||||
|
"& fieldset": {
|
||||||
|
padding: 0,
|
||||||
|
border: "none",
|
||||||
|
},
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Stack
|
||||||
|
className="custom-file-text"
|
||||||
|
alignItems="center"
|
||||||
|
gap="10px"
|
||||||
|
sx={{
|
||||||
|
position: "absolute",
|
||||||
|
top: "50%",
|
||||||
|
left: "50%",
|
||||||
|
transform: "translate(-50%, -50%)",
|
||||||
|
zIndex: "-1",
|
||||||
|
width: "100%",
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<IconButton
|
||||||
|
sx={{
|
||||||
|
pointerEvents: "none",
|
||||||
|
borderRadius: `${theme.shape.borderRadius}px`,
|
||||||
|
border: `solid ${theme.shape.borderThick}px ${theme.palette.otherColors.graishWhite}`,
|
||||||
|
boxShadow: theme.shape.boxShadow,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<CloudUploadIcon />
|
||||||
|
</IconButton>
|
||||||
|
<Typography variant="h4" component="h2">
|
||||||
|
<span>Click to upload</span> or drag and drop
|
||||||
|
</Typography>
|
||||||
|
<Typography variant="h4" component="p">
|
||||||
|
(max. 800x400px)
|
||||||
|
</Typography>
|
||||||
|
</Stack>
|
||||||
|
</Box>
|
||||||
|
) : (
|
||||||
|
<Stack direction="row" justifyContent="center">
|
||||||
|
<Box
|
||||||
|
sx={{
|
||||||
|
width: "250px",
|
||||||
|
height: "250px",
|
||||||
|
borderRadius: "50%",
|
||||||
|
overflow: "hidden",
|
||||||
|
backgroundImage: `url(${picture})`,
|
||||||
|
backgroundSize: "cover"
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
</Box>
|
||||||
|
</Stack>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ import AddIcon from "@mui/icons-material/Add";
|
|||||||
import Divider from "@mui/material/Divider";
|
import Divider from "@mui/material/Divider";
|
||||||
import UploadIcon from "@mui/icons-material/Upload";
|
import UploadIcon from "@mui/icons-material/Upload";
|
||||||
import SendIcon from "@mui/icons-material/Send";
|
import SendIcon from "@mui/icons-material/Send";
|
||||||
|
import ImageIcon from '@mui/icons-material/Image';
|
||||||
|
|
||||||
// Redux
|
// Redux
|
||||||
import { useSelector } from "react-redux";
|
import { useSelector } from "react-redux";
|
||||||
@@ -36,6 +37,7 @@ import { useDispatch } from "react-redux";
|
|||||||
import { getMonitors } from "../../Features/Monitors/monitorsSlice";
|
import { getMonitors } from "../../Features/Monitors/monitorsSlice";
|
||||||
import { getMonitorsByUserId } from "../../Features/Monitors/monitorsSlice";
|
import { getMonitorsByUserId } from "../../Features/Monitors/monitorsSlice";
|
||||||
import ImageField from "../../Components/TextFields/Image";
|
import ImageField from "../../Components/TextFields/Image";
|
||||||
|
import ProgressUpload from "../../Components/ProgressBars";
|
||||||
|
|
||||||
const cols = [
|
const cols = [
|
||||||
{
|
{
|
||||||
@@ -420,6 +422,10 @@ const Demo = () => {
|
|||||||
<ImageField />
|
<ImageField />
|
||||||
</Stack>
|
</Stack>
|
||||||
<Divider sx={{ margin: `${theme.spacing(2)}` }} />
|
<Divider sx={{ margin: `${theme.spacing(2)}` }} />
|
||||||
|
<Stack justifyContent="center" alignItems="center">
|
||||||
|
<ProgressUpload icon={<ImageIcon />} label="image.jpg" size="2 MB"/>
|
||||||
|
</Stack>
|
||||||
|
<Divider sx={{ margin: `${theme.spacing(2)}` }} />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ const theme = createTheme({
|
|||||||
},
|
},
|
||||||
shape: {
|
shape: {
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
|
borderThick: 2,
|
||||||
boxShadow: shadow,
|
boxShadow: shadow,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user