fix responsive all page & add modal doctor id & page dashboard aside

This commit is contained in:
Ehsan
2024-09-01 01:36:36 +03:30
parent b058066380
commit 680ef74034
64 changed files with 682 additions and 155 deletions
+3
View File
@@ -26,6 +26,9 @@ function Tabs({ value, handleChange, listTab, isSm }) {
},
'& .mui-11pdt05-MuiButtonBase-root-MuiTab-root.Mui-selected': {
color: '#F17732 !important'
},
'& .MuiButtonBase-root.Mui-selected': {
color: '#F17732 !important'
}
}}
>
+6 -1
View File
@@ -1,6 +1,8 @@
// app/ThemeRegistry.tsx
'use client';
import createCache from '@emotion/cache';
import { prefixer } from 'stylis';
import rtlPlugin from 'stylis-plugin-rtl';
import { useServerInsertedHTML } from 'next/navigation';
import { CacheProvider, ThemeProvider } from '@emotion/react';
import React from 'react';
@@ -11,7 +13,10 @@ import theme from '../theme/theme';
export default function ThemeRegistry({
children
}) {
const options = { key: 'mui' }
const options = {
key: 'muirtl',
stylisPlugins: [prefixer, rtlPlugin],
}
const [{ cache, flush }] = React.useState(() => {
const cache = createCache(options);
cache.compat = true;
+1 -1
View File
@@ -12,7 +12,7 @@ function Hours({ doctor, hour, setHour, value, nameHours }) {
<Button
onClick={() => setHour(idx)}
className={`
!w-full !rounded-[8px] !grid !place-items-center !bg-[#EFEFEF] !py-[10px] !px-[14px]
!w-full !rounded-[8px] !grid !place-items-center !bg-[#EFEFEF] !py-[10px] !px-[14px] !h-[40px] md:!h-[42px] lg:!h-[44px]
${idx === hour ? '!bg-[#F79463] ' : ''}
`}
>
+1 -1
View File
@@ -37,7 +37,7 @@ function DateTime({ doctor }) {
className="w-full flex justify-end"
>
<Button
className="!gap-[4px] !px-[12px] !py-[8px] !w-full !min-w-[157px]"
className="!gap-[4px] !px-[12px] !py-[8px] md:!py-[9px] !w-full md:!w-fit !min-w-[157px]"
onClick={() =>
localStorage.setItem('doctor-id', doctor?.id)
}
+1
View File
@@ -5,6 +5,7 @@ function Field({ title, type, isPlaceHolder }) {
return (
<TextField
label={title}
dir="rtl"
type={type || 'text'}
className="!w-full !mx-auto !bg-[#FFF]"
sx={{
+2 -1
View File
@@ -34,7 +34,8 @@ function ModalOpenLocation({ open, setOpen, handleClose, children }) {
className="!flex md:!hidden"
sx={{
'& .MuiPaper-root': {
borderRadius: '25px 25px 0px 0px'
borderRadius: '25px 25px 0px 0px !important',
overflow: 'hidden'
}
}}
>