fix responsive all page & add modal doctor id & page dashboard aside
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user