fixed bug
This commit is contained in:
@@ -16,11 +16,10 @@ const FooterDetails = () => {
|
||||
</Grid>
|
||||
<Grid item xs={12} md={4}>
|
||||
<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
|
||||
sx={{margin: 0.5, fontSize: "20px", color: "white"}}
|
||||
href={process.env.NEXT_PUBLIC_POWERED_BY_URL}
|
||||
target="_blank"
|
||||
sx={{margin: 0.5, fontSize: "16px", color: "white"}}
|
||||
href={'#'}
|
||||
underline="hover"
|
||||
>
|
||||
{t("powered_by_witel")}
|
||||
|
||||
@@ -4,6 +4,7 @@ import Button from '@mui/material/Button';
|
||||
import {AdapterDateFnsJalali} from "@mui/x-date-pickers/AdapterDateFnsJalali";
|
||||
import {LocalizationProvider} from '@mui/x-date-pickers/LocalizationProvider';
|
||||
import {DatePicker} from '@mui/x-date-pickers/DatePicker';
|
||||
import {faIR} from "@mui/x-date-pickers/locales";
|
||||
import {useTranslations} from "next-intl";
|
||||
import moment from "jalali-moment";
|
||||
import {FormControl, FormHelperText} from "@mui/material";
|
||||
@@ -67,7 +68,16 @@ export default function PickerWithButtonField({formik, disabled}) {
|
||||
size="small"
|
||||
error={true}
|
||||
>
|
||||
<LocalizationProvider dateAdapter={AdapterDateFnsJalali}>
|
||||
<LocalizationProvider
|
||||
dateAdapter={AdapterDateFnsJalali}
|
||||
localeText={
|
||||
{
|
||||
...faIR.components.MuiLocalizationProvider.defaultProps
|
||||
.localeText,
|
||||
okButtonLabel: 'تایید'
|
||||
}
|
||||
}
|
||||
>
|
||||
<ButtonDatePicker
|
||||
label={formik.values.birthday
|
||||
.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 theme from "./theme";
|
||||
import {faIR} from "@mui/x-date-pickers/locales";
|
||||
|
||||
const themeRtl = createTheme({
|
||||
direction: "rtl",
|
||||
typography: {
|
||||
fontFamily: `IRANSansFaNum, sans-serif`,
|
||||
},
|
||||
faIR,
|
||||
...theme,
|
||||
});
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import {GET_SIDEBAR_NOTIFICATION} from "@/core/data/apiRoutes";
|
||||
import UserInfo from "@/middlewares/UserInfo";
|
||||
import {useTranslations} from "next-intl";
|
||||
import moment from "jalali-moment";
|
||||
import headerItems from "@/core/data/headerItems";
|
||||
|
||||
const DashboardLayout = (props) => {
|
||||
const {user} = useUser()
|
||||
@@ -17,6 +18,7 @@ const DashboardLayout = (props) => {
|
||||
user_introduction={user.phone_number}
|
||||
headerProfileItems={headerProfileItems}
|
||||
headerSubtitle={`${t('today')} ${moment().locale('fa').format('LL')}`}
|
||||
HeaderItem={headerItems}
|
||||
sidebarMenu={sidebarMenu}
|
||||
urlNotification={GET_SIDEBAR_NOTIFICATION}
|
||||
BC_segmentsToRemove={['navgan', '[id]']}
|
||||
|
||||
@@ -5,6 +5,7 @@ export default function Home() {
|
||||
return (
|
||||
<>
|
||||
<FirstComponent/>
|
||||
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user