diff --git a/src/components/DateTimePicker/index.js b/src/components/DateTimePicker/index.js index 735646d..c835a1f 100644 --- a/src/components/DateTimePicker/index.js +++ b/src/components/DateTimePicker/index.js @@ -11,7 +11,7 @@ export default function DateTimeInput({ disabled, value }) { useEffect(() => { setDate(value); - }, [value]) + }, [value]); const handleChange = (newValue) => { setDate(newValue); diff --git a/src/pages/createEditUserRole/index.js b/src/pages/createEditUserRole/index.js new file mode 100644 index 0000000..b66bfe3 --- /dev/null +++ b/src/pages/createEditUserRole/index.js @@ -0,0 +1,218 @@ +import React from 'react'; +import MDBox from 'components/MDBox'; +import DashboardNavbar from 'components/DashboardNavbar'; +import Footer from 'components/Footer'; +import DashboardLayout from 'layouts/DashboardLayout'; +import { makeStyles } from '@mui/styles'; +import { Box, Grid } from '@mui/material'; +import MDButton from 'components/Button'; +import TransferList from 'components/MDTransferList'; +import DateTimeInput from 'components/DateTimePicker'; +import Switch from 'components/Switch'; +import MDTypography from 'components/MDTypography'; +import MDInput from 'components/MDInput'; +import TextareaAutosize from '@mui/material/TextareaAutosize'; +import Typography from '@mui/material/Typography'; + +const useStyles = makeStyles(() => ({ + labelSize: { + fontSize: '16px', + letterSpacing: '0.01em', + color: '#000', + marginBottom: '4px' + }, + boxWrap: { + backgroundColor: '#fff', + border: '1px solid #c2c2c2', + borderTop: '3px solid #007aff', + display: 'inline-block', + padding: '12px', + borderRadius: '4px' + }, + noLegend: { + display: 'none' + }, + fullWidth: { + width: '100%', + borderColor: '#d2d6da', + borderRadius: '0.375rem' + }, + switchSpacer: { + margin: '0', + '& .MuiFormControlLabel-root': { + margin: '0' + }, + '& .MuiSwitch-root': { + margin: '0' + } + } +})); +function CreateEditUserRole() { + const classes = useStyles(); + return ( + + + + + + + + + Warehouse name + + + + + + Description + + + + + + + + Created By + + + + + + Date & Time + + + + + + Last Updated by + + + + + + Date & Time + + + + + + + + + + Choose avatar component here + + + + + + + + Warehouse + + + + + + + + Warehouse + + + + + + + + + + Process + + + Sidenav Mini + + + + + + + + Application + + + Sidenav Mini + + + + + + + + Cancel + + + Save + + + +