@@ -4,7 +4,7 @@ import { | |||||
DataGrid, GridOverlay, | DataGrid, GridOverlay, | ||||
} from "@mui/x-data-grid"; | } from "@mui/x-data-grid"; | ||||
import {FormattedMessage, useIntl} from "react-intl"; | import {FormattedMessage, useIntl} from "react-intl"; | ||||
import {Typography} from '@mui/material'; | |||||
import {TablePagination, Typography} from '@mui/material'; | |||||
// ==============================|| EVENT TABLE ||============================== // | // ==============================|| EVENT TABLE ||============================== // | ||||
@@ -124,27 +124,12 @@ export function FiDataGrid({ rows, columns, sx, autoHeight, | |||||
return ( | return ( | ||||
<GridOverlay> | <GridOverlay> | ||||
<Typography variant="body1"> | <Typography variant="body1"> | ||||
<FormattedMessage id="rowsPerPage" /> | |||||
<FormattedMessage id="noRecordFound" /> | |||||
</Typography> | </Typography> | ||||
</GridOverlay> | </GridOverlay> | ||||
); | ); | ||||
} | } | ||||
const CustomPagination = (props) => { | |||||
const { pagination } = props; | |||||
const { page, pageSize, rowCount } = pagination; | |||||
const startIndex = page * pageSize + 1; | |||||
const endIndex = Math.min((page + 1) * pageSize, rowCount); | |||||
return ( | |||||
<div> | |||||
<div>{`${startIndex}-${endIndex} YES ${rowCount}`}</div> | |||||
{/* Render other pagination controls */} | |||||
</div> | |||||
); | |||||
}; | |||||
return ( | return ( | ||||
<DataGrid | <DataGrid | ||||
{...props} | {...props} | ||||
@@ -164,11 +149,19 @@ export function FiDataGrid({ rows, columns, sx, autoHeight, | |||||
) | ) | ||||
}} | }} | ||||
components={{ | components={{ | ||||
Pagination: CustomPagination, | |||||
Pagination: () => ( | |||||
<TablePagination | |||||
labelDisplayedRows={ | |||||
({ from, to, count }) => { | |||||
return '' + from + '-' + to + ' ' + count | |||||
} | |||||
} | |||||
/> | |||||
), | |||||
}} | }} | ||||
componentsProps={{ | componentsProps={{ | ||||
pagination: { | pagination: { | ||||
labelRowsPerPage: intl.formatMessage({id: 'rowsPerPage'}), | |||||
labelRowsPerPage: intl.formatMessage({id: 'rowsPerPage'}) + ":", | |||||
} | } | ||||
}} | }} | ||||
/> | /> | ||||
@@ -144,6 +144,7 @@ const SearchPublicNoticeForm = ({ applySearch, issueComboData, _paymentCount, _p | |||||
<Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 1 }}> | <Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 1 }}> | ||||
<Autocomplete | <Autocomplete | ||||
disablePortal | disablePortal | ||||
size="small" | |||||
id="issueId" | id="issueId" | ||||
options={issueCombo} | options={issueCombo} | ||||
value={issueSelected} | value={issueSelected} | ||||
@@ -105,6 +105,7 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue | |||||
{...register("issueId")} | {...register("issueId")} | ||||
disablePortal | disablePortal | ||||
id="issueId" | id="issueId" | ||||
size="small" | |||||
options={issueCombo} | options={issueCombo} | ||||
value={issueSelected} | value={issueSelected} | ||||
inputValue={(issueSelected?.id) ? getIssueLabel(issueSelected) : ""} | inputValue={(issueSelected?.id) ? getIssueLabel(issueSelected) : ""} | ||||
@@ -145,6 +146,7 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue | |||||
{...register("orgId")} | {...register("orgId")} | ||||
disablePortal | disablePortal | ||||
id="orgId" | id="orgId" | ||||
size="small" | |||||
options={orgCombo} | options={orgCombo} | ||||
value={orgSelected} | value={orgSelected} | ||||
inputValue={(orgSelected?.label) ? orgSelected?.label : ""} | inputValue={(orgSelected?.label) ? orgSelected?.label : ""} | ||||
@@ -220,6 +222,7 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue | |||||
<Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> | <Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> | ||||
<Autocomplete | <Autocomplete | ||||
multiple | multiple | ||||
size="small" | |||||
{...register("status")} | {...register("status")} | ||||
id="status" | id="status" | ||||
options={ComboData.denmandNoteStatus} | options={ComboData.denmandNoteStatus} | ||||
@@ -258,20 +261,17 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue | |||||
{/*last row*/} | {/*last row*/} | ||||
<Grid container maxWidth justifyContent="flex-end"> | <Grid container maxWidth justifyContent="flex-end"> | ||||
<Grid item sx={{ ml: 3, mr: 3, mb: 3, mt: 3 }}> | |||||
<Grid item sx={{ ml: 3, mr: 3 }}> | |||||
<Button | <Button | ||||
size="large" | size="large" | ||||
variant="contained" | variant="contained" | ||||
onClick={resetForm} | onClick={resetForm} | ||||
sx={{ | |||||
textTransform: 'capitalize', | |||||
alignItems: 'end' | |||||
}}> | |||||
> | |||||
<Typography variant="h5">Clear</Typography> | <Typography variant="h5">Clear</Typography> | ||||
</Button> | </Button> | ||||
</Grid> | </Grid> | ||||
<Grid item sx={{ ml: 3, mr: 3, mb: 3, mt: 3 }}> | |||||
<Grid item sx={{ ml: 3, mr: 3}}> | |||||
<Button | <Button | ||||
size="large" | size="large" | ||||
variant="contained" | variant="contained" | ||||
@@ -79,7 +79,7 @@ const Index = () => { | |||||
<Grid container justifyContent="flex-start" alignItems="center" > | <Grid container justifyContent="flex-start" alignItems="center" > | ||||
<center> | <center> | ||||
<Grid item xs={12} md={12} sx={{p:2}} > | <Grid item xs={12} md={12} sx={{p:2}} > | ||||
<Typography variant="h2" sx={{ textAlign: "left", borderBottom: "1px solid black" }}> | |||||
<Typography variant="h3" sx={{ textAlign: "left", borderBottom: "1px solid black" }}> | |||||
{record?.subject} | {record?.subject} | ||||
</Typography> | </Typography> | ||||
<Typography sx={{p:1}} align="justify">{DateUtils.datetimeStr(record?.sentDate)}</Typography> | <Typography sx={{p:1}} align="justify">{DateUtils.datetimeStr(record?.sentDate)}</Typography> | ||||
@@ -87,7 +87,7 @@ const Index = () => { | |||||
<div dangerouslySetInnerHTML={{__html: record?.content}}></div> | <div dangerouslySetInnerHTML={{__html: record?.content}}></div> | ||||
</Typography> | </Typography> | ||||
<Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> | |||||
<Typography variant="h4" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}> | |||||
<Button | <Button | ||||
component="span" | component="span" | ||||
variant="contained" | variant="contained" | ||||
@@ -138,6 +138,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria }) => { | |||||
<Autocomplete | <Autocomplete | ||||
{...register("status")} | {...register("status")} | ||||
disablePortal={false} | disablePortal={false} | ||||
size="small" | |||||
id="status" | id="status" | ||||
filterOptions={(options) => options} | filterOptions={(options) => options} | ||||
options={ComboData.paymentStatus} | options={ComboData.paymentStatus} | ||||
@@ -132,6 +132,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss | |||||
<Autocomplete | <Autocomplete | ||||
{...register("issueId")} | {...register("issueId")} | ||||
disablePortal | disablePortal | ||||
size="small" | |||||
id="issueId" | id="issueId" | ||||
options={issueCombo} | options={issueCombo} | ||||
value={issueSelected} | value={issueSelected} | ||||
@@ -155,6 +156,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss | |||||
<Autocomplete | <Autocomplete | ||||
{...register("gazettGroup")} | {...register("gazettGroup")} | ||||
disablePortal | disablePortal | ||||
size="small" | |||||
id="gazettGroup" | id="gazettGroup" | ||||
options={ComboData.groupTitle} | options={ComboData.groupTitle} | ||||
value={groupSelected} | value={groupSelected} | ||||
@@ -229,6 +231,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss | |||||
{...register("status")} | {...register("status")} | ||||
disablePortal | disablePortal | ||||
id="status" | id="status" | ||||
size="small" | |||||
filterOptions={(options) => options} | filterOptions={(options) => options} | ||||
options={ComboData.proofStatus} | options={ComboData.proofStatus} | ||||
value={status} | value={status} | ||||
@@ -256,6 +259,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss | |||||
{...register("orgId")} | {...register("orgId")} | ||||
disablePortal={false} | disablePortal={false} | ||||
id="orgId" | id="orgId" | ||||
size="small" | |||||
options={orgCombo} | options={orgCombo} | ||||
value={orgSelected} | value={orgSelected} | ||||
inputValue={(orgSelected?.label) ? orgSelected?.label : ""} | inputValue={(orgSelected?.label) ? orgSelected?.label : ""} | ||||
@@ -237,6 +237,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss | |||||
disablePortal | disablePortal | ||||
id="orgId" | id="orgId" | ||||
options={orgCombo} | options={orgCombo} | ||||
size="small" | |||||
value={orgSelected} | value={orgSelected} | ||||
inputValue={(orgSelected?.label) ? orgSelected?.label : ""} | inputValue={(orgSelected?.label) ? orgSelected?.label : ""} | ||||
onChange={(event, newValue) => { | onChange={(event, newValue) => { | ||||
@@ -261,6 +262,7 @@ const SearchPublicNoticeForm = ({ applySearch, orgComboData, searchCriteria, iss | |||||
<Autocomplete | <Autocomplete | ||||
{...register("issueId")} | {...register("issueId")} | ||||
disablePortal | disablePortal | ||||
size="small" | |||||
id="issueId" | id="issueId" | ||||
size="small" | size="small" | ||||
options={issueCombo} | options={issueCombo} | ||||
@@ -20,22 +20,18 @@ export default function UserAuthTable({setSelectedRow, userAuth,isNewRecord}) { | |||||
const [onReady, setOnReady] = useState(false); | const [onReady, setOnReady] = useState(false); | ||||
const [currentSelectedRow, setCurrentSelectedRow] = useState(userAuth); | const [currentSelectedRow, setCurrentSelectedRow] = useState(userAuth); | ||||
const _sx = { | const _sx = { | ||||
ml: 3, | |||||
mb: 3, | |||||
mr: 3, | |||||
padding: "4 2 4 2", | |||||
boxShadow: 1, | boxShadow: 1, | ||||
border: 1, | border: 1, | ||||
borderColor: '#DDD', | borderColor: '#DDD', | ||||
'& .MuiDataGrid-cell': { | '& .MuiDataGrid-cell': { | ||||
borderTop: 1, | borderTop: 1, | ||||
borderBottom: 1, | |||||
//borderBottom: 1, | |||||
borderColor: "#EEE" | borderColor: "#EEE" | ||||
}, | }, | ||||
'& .MuiDataGrid-footerContainer': { | |||||
border: 1, | |||||
borderColor: "#EEE" | |||||
} | |||||
// '& .MuiDataGrid-footerContainer': { | |||||
// border: 1, | |||||
// borderColor: "#EEE" | |||||
// } | |||||
} | } | ||||
useEffect(() => { | useEffect(() => { | ||||
axios.get(`${apiPath}${GET_AUTH_LIST}`) | axios.get(`${apiPath}${GET_AUTH_LIST}`) | ||||
@@ -49,8 +49,9 @@ const UserAuthorityCard = ({ isCollectData, updateUserAuthList, userData, isNewR | |||||
<MainCard elevation={0} | <MainCard elevation={0} | ||||
border={false} | border={false} | ||||
content={false} | content={false} | ||||
sx={{margin: 0}} | |||||
> | > | ||||
<Typography variant="h6" sx={{ mt: 3, ml: 3, mb: 2, mr: 3, borderBottom: "1px solid black" }}> | |||||
<Typography variant="h6" sx={{ mt: 2, ml: 3, mr: 1, borderBottom: "1px solid black" }}> | |||||
User Authority | User Authority | ||||
</Typography> | </Typography> | ||||
@@ -49,8 +49,9 @@ const UserGroupCard = ({isCollectData, updateUserGroupList,userData,isNewRecord} | |||||
<MainCard elevation={0} | <MainCard elevation={0} | ||||
border={false} | border={false} | ||||
content={false} | content={false} | ||||
sx={{margin: 0}} | |||||
> | > | ||||
<Typography variant="h5" sx={{mt: 3, ml: 3, mb: 2, mr: 3, borderBottom: "1px solid black"}}> | |||||
<Typography variant="h6" sx={{mt: 2, ml: 3, mr: 1, borderBottom: "1px solid black"}}> | |||||
Group(s) | Group(s) | ||||
</Typography> | </Typography> | ||||
<UserGroupTable | <UserGroupTable | ||||
@@ -19,9 +19,6 @@ export default function UserGroupTable({setSelectedRow, userGroup,isNewRecord}) | |||||
const [currentSelectedRow, setCurrentSelectedRow] = useState(userGroup); | const [currentSelectedRow, setCurrentSelectedRow] = useState(userGroup); | ||||
const _sx = { | const _sx = { | ||||
ml: 3, | |||||
mb: 3, | |||||
mr: 3, | |||||
padding: "4 2 4 2", | padding: "4 2 4 2", | ||||
boxShadow: 1, | boxShadow: 1, | ||||
border: 1, | border: 1, | ||||
@@ -67,8 +67,9 @@ const UserInformationCard = ({isCollectData, updateUserObject,userData,isNewReco | |||||
<MainCard elevation={0} | <MainCard elevation={0} | ||||
border={false} | border={false} | ||||
content={false} | content={false} | ||||
sx={{margin: 0}} | |||||
> | > | ||||
<Typography variant="h5" sx={{mt: 3, ml: 3, mr: 3, borderBottom: "1px solid black"}}> | |||||
<Typography variant="h6" sx={{ mt: 2, ml: 3, mr: 1, borderBottom: "1px solid black"}}> | |||||
Information | Information | ||||
</Typography> | </Typography> | ||||
@@ -236,10 +237,10 @@ const UserInformationCard = ({isCollectData, updateUserObject,userData,isNewReco | |||||
</Grid> | </Grid> | ||||
</Grid> */} | </Grid> */} | ||||
<Grid item xs={12} s={12} md={12} lg={12} sx={{ml: 3, mr: 3, mb: 3}}> | |||||
<Grid item xs={12} s={12} md={12} lg={12} sx={{ml: 3, mr: 3}}> | |||||
<Grid container> | <Grid container> | ||||
<Grid item xs={4} s={4} md={4} lg={4} | <Grid item xs={4} s={4} md={4} lg={4} | ||||
sx={{ml: 3, mr: 3, display: 'flex', alignItems: 'center'}}> | |||||
sx={{ml: 3, mr: 3, mb:3, display: 'flex', alignItems: 'center'}}> | |||||
<FormLabel required>Locked:</FormLabel> | <FormLabel required>Locked:</FormLabel> | ||||
</Grid> | </Grid> | ||||
@@ -221,7 +221,7 @@ const UserMaintainPage = () => { | |||||
<Grid item xs={12} md={5} lg={5}> | <Grid item xs={12} md={5} lg={5}> | ||||
<Grid container> | <Grid container> | ||||
<Grid item xs={12} md={12} lg={12}> | <Grid item xs={12} md={12} lg={12}> | ||||
<Box xs={12} ml={4} mt={3} sx={{ p: 1, borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
<Box xs={12} ml={4} mt={2} sx={{ borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
<UserInformationCard | <UserInformationCard | ||||
updateUserObject={updateUserObject} | updateUserObject={updateUserObject} | ||||
userData={userData} | userData={userData} | ||||
@@ -231,8 +231,8 @@ const UserMaintainPage = () => { | |||||
</Box> | </Box> | ||||
</Grid> | </Grid> | ||||
<Grid item xs={12} md={12} lg={12} sx={{ mt: 3 }}> | |||||
<Box xs={12} ml={4} mt={2} sx={{ p: 1, borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
<Grid item xs={12} md={12} lg={12} sx={{ mt: 0.5 }}> | |||||
<Box xs={12} ml={4} mt={2} sx={{borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
<UserGroupCard | <UserGroupCard | ||||
updateUserGroupList={updateUserGroupList} | updateUserGroupList={updateUserGroupList} | ||||
userData={userData} | userData={userData} | ||||
@@ -245,7 +245,7 @@ const UserMaintainPage = () => { | |||||
</Grid> | </Grid> | ||||
{/*col 2*/} | {/*col 2*/} | ||||
<Grid item xs={12} md={7} lg={7}> | <Grid item xs={12} md={7} lg={7}> | ||||
<Box xs={12} ml={4} mt={3} mr={3} sx={{ p: 1, borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
<Box xs={12} ml={2} mt={2} mr={3} sx={{ borderRadius: '10px', backgroundColor: '#fff' }}> | |||||
<UserAuthorityCard | <UserAuthorityCard | ||||
updateUserAuthList={updateUserAuthList} | updateUserAuthList={updateUserAuthList} | ||||
userData={userData} | userData={userData} | ||||
@@ -256,7 +256,7 @@ const UserMaintainPage = () => { | |||||
</Grid> | </Grid> | ||||
{/*bottom button*/} | {/*bottom button*/} | ||||
<Grid item s={12} md={12} lg={12} sx={{ mb: 3 }} alignItems={"end"} justifyContent="center"> | |||||
<Grid item s={12} md={12} lg={12} sx={{ mt:1, mb:2 }} alignItems={"end"} justifyContent="center"> | |||||
<Grid container maxWidth justifyContent="flex-end"> | <Grid container maxWidth justifyContent="flex-end"> | ||||
<Grid item sx={{ ml: 3, mr: 3 }}> | <Grid item sx={{ ml: 3, mr: 3 }}> | ||||
<Button | <Button | ||||
@@ -110,6 +110,7 @@ const UserSearchForm_Individual = ({ applySearch }) => { | |||||
{...register("accountFilter")} | {...register("accountFilter")} | ||||
disablePortal | disablePortal | ||||
id="accountFilter" | id="accountFilter" | ||||
size="small" | |||||
options={["Active", "Locked", "Not verified"]} | options={["Active", "Locked", "Not verified"]} | ||||
value={accountFilter} | value={accountFilter} | ||||
onChange={(event, newValue) => { | onChange={(event, newValue) => { | ||||
@@ -139,6 +139,7 @@ const UserSearchForm_Organization = ({applySearch}) => { | |||||
{...register("accountFilter")} | {...register("accountFilter")} | ||||
disablePortal | disablePortal | ||||
id="accountFilter" | id="accountFilter" | ||||
size="small" | |||||
options={["All", "Active","Locked","Not verified"]} | options={["All", "Active","Locked","Not verified"]} | ||||
value={accountFilter} | value={accountFilter} | ||||
onChange={(event, newValue) => { | onChange={(event, newValue) => { | ||||
@@ -1,4 +1,4 @@ | |||||
import React, {useEffect, useState} from 'react'; | |||||
import React, {useContext, useEffect, useState} from 'react'; | |||||
import {useNavigate} from 'react-router-dom'; | import {useNavigate} from 'react-router-dom'; | ||||
// material-ui | // material-ui | ||||
@@ -36,6 +36,7 @@ import {useDispatch} from "react-redux"; | |||||
import {handleLogin} from "auth/index"; | import {handleLogin} from "auth/index"; | ||||
import { notifyActionSuccess } from 'utils/CommonFunction'; | import { notifyActionSuccess } from 'utils/CommonFunction'; | ||||
import {FormattedMessage} from "react-intl"; | import {FormattedMessage} from "react-intl"; | ||||
import LocaleContext from "../../../components/I18nProvider"; | |||||
// ============================|| FIREBASE - LOGIN ||============================ // | // ============================|| FIREBASE - LOGIN ||============================ // | ||||
const AuthLogin = () => { | const AuthLogin = () => { | ||||
@@ -69,6 +70,7 @@ const AuthLogin = () => { | |||||
}) | }) | ||||
.then((response) => { | .then((response) => { | ||||
//setPosts("12354") | //setPosts("12354") | ||||
console.log(response.data); | |||||
setPosts(response.data); | setPosts(response.data); | ||||
const userData = { | const userData = { | ||||
id: response.data.id, | id: response.data.id, | ||||
@@ -1,7 +1,7 @@ | |||||
import React, { | import React, { | ||||
useEffect, | useEffect, | ||||
useState, | useState, | ||||
lazy | |||||
lazy, useContext | |||||
} from 'react'; | } from 'react'; | ||||
import { Link as RouterLink } from 'react-router-dom'; | import { Link as RouterLink } from 'react-router-dom'; | ||||
import { useNavigate } from 'react-router-dom'; | import { useNavigate } from 'react-router-dom'; | ||||
@@ -45,12 +45,14 @@ import { handleLogin } from "auth/index"; | |||||
import useJwt from "../../../auth/jwt/useJwt"; | import useJwt from "../../../auth/jwt/useJwt"; | ||||
import { handleLogoutFunction } from 'auth/index'; | import { handleLogoutFunction } from 'auth/index'; | ||||
import {FormattedMessage, useIntl} from "react-intl"; | import {FormattedMessage, useIntl} from "react-intl"; | ||||
import LocaleContext from "../../../components/I18nProvider"; | |||||
// ============================|| FIREBASE - LOGIN ||============================ // | // ============================|| FIREBASE - LOGIN ||============================ // | ||||
const AuthLoginCustom = () => { | const AuthLoginCustom = () => { | ||||
const dispatch = useDispatch() | const dispatch = useDispatch() | ||||
const navigate = useNavigate() | const navigate = useNavigate() | ||||
const intl = useIntl(); | const intl = useIntl(); | ||||
const { setLocale } = useContext(LocaleContext); | |||||
const [showPassword, setShowPassword] = useState(false); | const [showPassword, setShowPassword] = useState(false); | ||||
const handleClickShowPassword = () => { | const handleClickShowPassword = () => { | ||||
@@ -88,6 +90,11 @@ const AuthLoginCustom = () => { | |||||
} | } | ||||
const data = { ...userData, accessToken: response.data.accessToken, refreshToken: response.data.refreshToken } | const data = { ...userData, accessToken: response.data.accessToken, refreshToken: response.data.refreshToken } | ||||
// setSuccess(true) | // setSuccess(true) | ||||
console.log(response.data.role); | |||||
if(response.data.type === "GLD"){ | |||||
setLocale("en"); | |||||
localStorage.setItem('locale','en'); | |||||
} | |||||
dispatch(handleLogin(data)) | dispatch(handleLogin(data)) | ||||
navigate('/dashboard'); | navigate('/dashboard'); | ||||
location.reload() | location.reload() | ||||
@@ -79,14 +79,10 @@ const UserGroupSearchForm = ({ applySearch }) => { | |||||
> | > | ||||
<Grid item xs={3} md={3} sx={{ ml: 3, mr: 1 }}> | <Grid item xs={3} md={3} sx={{ ml: 3, mr: 1 }}> | ||||
<Button | <Button | ||||
size="large" | |||||
variant="contained" | variant="contained" | ||||
onClick={handleNewGroupClick} | onClick={handleNewGroupClick} | ||||
sx={{ | |||||
textTransform: 'capitalize', | |||||
alignItems: 'end', | |||||
}}> | |||||
<AddCircleOutlineIcon sx={{ mr: 1, mb: 0.5 }} /> | |||||
startIcon={<AddCircleOutlineIcon sx={{alignItems:"center"}}/>} | |||||
> | |||||
<Typography variant="h5">New Group</Typography> | <Typography variant="h5">New Group</Typography> | ||||
</Button> | </Button> | ||||
</Grid> | </Grid> | ||||
@@ -77,7 +77,7 @@ export const PNSPS_THEME = createTheme({ | |||||
}, | }, | ||||
'&.MuiButton-root':{ | '&.MuiButton-root':{ | ||||
fontSize: '1.2rem', | fontSize: '1.2rem', | ||||
alignItems: 'normal', | |||||
alignItems: 'center', | |||||
}, | }, | ||||
} | } | ||||
} | } | ||||
@@ -355,6 +355,10 @@ | |||||
"district": "District", | "district": "District", | ||||
"noRecordFound": "No record found", | "noRecordFound": "No record found", | ||||
"rowsPerPage": "Rows Per Page", | "rowsPerPage": "Rows Per Page", | ||||
"date" : "Date", | |||||
"keyword": "Key word", | |||||
"dateFrom": "Date(From)", | |||||
"dateTo": "Date(To)", | |||||
"Dashboard": "Dashboard", | "Dashboard": "Dashboard", | ||||
"event": "Event" | "event": "Event" |
@@ -355,6 +355,10 @@ | |||||
"district": "区", | "district": "区", | ||||
"noRecordFound": "找不到記錄", | "noRecordFound": "找不到記錄", | ||||
"rowsPerPage": "每页项数", | "rowsPerPage": "每页项数", | ||||
"date" : "日期", | |||||
"keyword": "关键字", | |||||
"dateFrom": "日期(从)", | |||||
"dateTo": "日期(到)", | |||||
"Dashboard": "仪表板", | "Dashboard": "仪表板", | ||||
"event": "活动" | "event": "活动" |
@@ -355,6 +355,10 @@ | |||||
"district": "區", | "district": "區", | ||||
"noRecordFound": "找不到記錄", | "noRecordFound": "找不到記錄", | ||||
"rowsPerPage": "每頁項數", | "rowsPerPage": "每頁項數", | ||||
"date" : "日期", | |||||
"keyword": "關鍵字", | |||||
"dateFrom": "日期(從)", | |||||
"dateTo": "日期(到)", | |||||
"Dashboard": "儀表板", | "Dashboard": "儀表板", | ||||
"event": "活動" | "event": "活動" |