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
+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;