fixed bug
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
"@mui/lab": "^5.0.0-alpha.152",
|
"@mui/lab": "^5.0.0-alpha.152",
|
||||||
"@mui/material": "^5.12.0",
|
"@mui/material": "^5.12.0",
|
||||||
"@mui/x-date-pickers": "^6.18.5",
|
"@mui/x-date-pickers": "^6.18.5",
|
||||||
"@witel/webapp-builder": "^1.2.4",
|
"@witel/webapp-builder": "^1.3.1",
|
||||||
"axios": "^1.4.0",
|
"axios": "^1.4.0",
|
||||||
"colord": "^2.9.3",
|
"colord": "^2.9.3",
|
||||||
"date-fns-jalali": "^2.13.0-0",
|
"date-fns-jalali": "^2.13.0-0",
|
||||||
|
|||||||
@@ -1,10 +1,16 @@
|
|||||||
{
|
{
|
||||||
"middlewares": {},
|
"middlewares": {
|
||||||
|
"/dashboard/navgan/add-request-loan":{
|
||||||
|
"status" : false,
|
||||||
|
"title":"اطلاع رسانی",
|
||||||
|
"message": "ثبت نام به زودی آغاز خواهد شد."
|
||||||
|
}
|
||||||
|
},
|
||||||
"deadlines": {
|
"deadlines": {
|
||||||
"register": {
|
"register": {
|
||||||
"date": {
|
"date": {
|
||||||
"from": "1402/09/01",
|
"from": "1402/10/02",
|
||||||
"to": "1402/09/10"
|
"to": "1402/10/15"
|
||||||
},
|
},
|
||||||
"messages": {
|
"messages": {
|
||||||
"before": "ثبت نام هنوز شروع نشده",
|
"before": "ثبت نام هنوز شروع نشده",
|
||||||
@@ -17,8 +23,8 @@
|
|||||||
},
|
},
|
||||||
"validation": {
|
"validation": {
|
||||||
"date": {
|
"date": {
|
||||||
"from": "1402/09/15",
|
"from": "1402/10/15",
|
||||||
"to": "1402/11/10"
|
"to": "1402/10/30"
|
||||||
},
|
},
|
||||||
"messages": {},
|
"messages": {},
|
||||||
"timeline_label": {
|
"timeline_label": {
|
||||||
@@ -28,8 +34,8 @@
|
|||||||
},
|
},
|
||||||
"done": {
|
"done": {
|
||||||
"date": {
|
"date": {
|
||||||
"from": "1402/11/10",
|
"from": "1402/11/01",
|
||||||
"to": "1402/12/20"
|
"to": "1402/11/20"
|
||||||
},
|
},
|
||||||
"messages": {},
|
"messages": {},
|
||||||
"timeline_label": {
|
"timeline_label": {
|
||||||
|
|||||||
BIN
public/files/راهنمای-سامانه.pdf
Normal file
BIN
public/files/راهنمای-سامانه.pdf
Normal file
Binary file not shown.
BIN
public/icons/bpms.png
Normal file
BIN
public/icons/bpms.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
@@ -16,11 +16,10 @@ const FooterDetails = () => {
|
|||||||
</Grid>
|
</Grid>
|
||||||
<Grid item xs={12} md={4}>
|
<Grid item xs={12} md={4}>
|
||||||
<Stack direction="row" alignItems="center" justifyContent="center">
|
<Stack direction="row" alignItems="center" justifyContent="center">
|
||||||
<img src='/icons/logoLandingPage.png' width={25} alt="Your Alt Text"/>
|
<img src='/icons/bpms.png' width={50} alt={t("powered_by_witel")}/>
|
||||||
<LinkRouting
|
<LinkRouting
|
||||||
sx={{margin: 0.5, fontSize: "20px", color: "white"}}
|
sx={{margin: 0.5, fontSize: "16px", color: "white"}}
|
||||||
href={process.env.NEXT_PUBLIC_POWERED_BY_URL}
|
href={'#'}
|
||||||
target="_blank"
|
|
||||||
underline="hover"
|
underline="hover"
|
||||||
>
|
>
|
||||||
{t("powered_by_witel")}
|
{t("powered_by_witel")}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import Button from '@mui/material/Button';
|
|||||||
import {AdapterDateFnsJalali} from "@mui/x-date-pickers/AdapterDateFnsJalali";
|
import {AdapterDateFnsJalali} from "@mui/x-date-pickers/AdapterDateFnsJalali";
|
||||||
import {LocalizationProvider} from '@mui/x-date-pickers/LocalizationProvider';
|
import {LocalizationProvider} from '@mui/x-date-pickers/LocalizationProvider';
|
||||||
import {DatePicker} from '@mui/x-date-pickers/DatePicker';
|
import {DatePicker} from '@mui/x-date-pickers/DatePicker';
|
||||||
|
import {faIR} from "@mui/x-date-pickers/locales";
|
||||||
import {useTranslations} from "next-intl";
|
import {useTranslations} from "next-intl";
|
||||||
import moment from "jalali-moment";
|
import moment from "jalali-moment";
|
||||||
import {FormControl, FormHelperText} from "@mui/material";
|
import {FormControl, FormHelperText} from "@mui/material";
|
||||||
@@ -67,7 +68,16 @@ export default function PickerWithButtonField({formik, disabled}) {
|
|||||||
size="small"
|
size="small"
|
||||||
error={true}
|
error={true}
|
||||||
>
|
>
|
||||||
<LocalizationProvider dateAdapter={AdapterDateFnsJalali}>
|
<LocalizationProvider
|
||||||
|
dateAdapter={AdapterDateFnsJalali}
|
||||||
|
localeText={
|
||||||
|
{
|
||||||
|
...faIR.components.MuiLocalizationProvider.defaultProps
|
||||||
|
.localeText,
|
||||||
|
okButtonLabel: 'تایید'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
>
|
||||||
<ButtonDatePicker
|
<ButtonDatePicker
|
||||||
label={formik.values.birthday
|
label={formik.values.birthday
|
||||||
.locale("fa")
|
.locale("fa")
|
||||||
|
|||||||
20
src/core/data/headerItems.js
Normal file
20
src/core/data/headerItems.js
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
import {Button, Link} from "@mui/material";
|
||||||
|
|
||||||
|
const headerItems = [
|
||||||
|
<Button
|
||||||
|
variant={'contained'}
|
||||||
|
color={'warning'}
|
||||||
|
size={'small'}
|
||||||
|
sx={{mx: 2}}>
|
||||||
|
<Link
|
||||||
|
color={'white'}
|
||||||
|
download
|
||||||
|
underline="none"
|
||||||
|
href={'/files/راهنمای-سامانه.pdf'}
|
||||||
|
>
|
||||||
|
راهنمای سامانه
|
||||||
|
</Link>
|
||||||
|
</Button>
|
||||||
|
];
|
||||||
|
|
||||||
|
export default headerItems;
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
import {createTheme} from "@mui/material/styles";
|
import {createTheme} from "@mui/material/styles";
|
||||||
import theme from "./theme";
|
import theme from "./theme";
|
||||||
|
import {faIR} from "@mui/x-date-pickers/locales";
|
||||||
|
|
||||||
const themeRtl = createTheme({
|
const themeRtl = createTheme({
|
||||||
direction: "rtl",
|
direction: "rtl",
|
||||||
typography: {
|
typography: {
|
||||||
fontFamily: `IRANSansFaNum, sans-serif`,
|
fontFamily: `IRANSansFaNum, sans-serif`,
|
||||||
},
|
},
|
||||||
|
faIR,
|
||||||
...theme,
|
...theme,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import {GET_SIDEBAR_NOTIFICATION} from "@/core/data/apiRoutes";
|
|||||||
import UserInfo from "@/middlewares/UserInfo";
|
import UserInfo from "@/middlewares/UserInfo";
|
||||||
import {useTranslations} from "next-intl";
|
import {useTranslations} from "next-intl";
|
||||||
import moment from "jalali-moment";
|
import moment from "jalali-moment";
|
||||||
|
import headerItems from "@/core/data/headerItems";
|
||||||
|
|
||||||
const DashboardLayout = (props) => {
|
const DashboardLayout = (props) => {
|
||||||
const {user} = useUser()
|
const {user} = useUser()
|
||||||
@@ -17,6 +18,7 @@ const DashboardLayout = (props) => {
|
|||||||
user_introduction={user.phone_number}
|
user_introduction={user.phone_number}
|
||||||
headerProfileItems={headerProfileItems}
|
headerProfileItems={headerProfileItems}
|
||||||
headerSubtitle={`${t('today')} ${moment().locale('fa').format('LL')}`}
|
headerSubtitle={`${t('today')} ${moment().locale('fa').format('LL')}`}
|
||||||
|
HeaderItem={headerItems}
|
||||||
sidebarMenu={sidebarMenu}
|
sidebarMenu={sidebarMenu}
|
||||||
urlNotification={GET_SIDEBAR_NOTIFICATION}
|
urlNotification={GET_SIDEBAR_NOTIFICATION}
|
||||||
BC_segmentsToRemove={['navgan', '[id]']}
|
BC_segmentsToRemove={['navgan', '[id]']}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export default function Home() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<FirstComponent/>
|
<FirstComponent/>
|
||||||
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user