From 1469e4ff5a987fae824af40ee85bfd6ee8c4d31e Mon Sep 17 00:00:00 2001 From: m0n02hz Date: Sun, 6 Mar 2022 01:15:51 +0530 Subject: [PATCH] [WMS-39] Role Page Added, date field bug fixed --- src/components/DateTimePicker/index.js | 2 +- src/pages/createEditUserRole/index.js | 218 ++++++++++++++ src/pages/createUserRole/index.js | 382 ------------------------- src/pages/useraccess/index.js | 122 +++++--- src/routes/index.js | 4 +- 5 files changed, 296 insertions(+), 432 deletions(-) create mode 100644 src/pages/createEditUserRole/index.js delete mode 100644 src/pages/createUserRole/index.js 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 + + + +