init project
This commit is contained in:
16
src/core/utils/cacheRtl.js
Normal file
16
src/core/utils/cacheRtl.js
Normal file
@@ -0,0 +1,16 @@
|
||||
'use client'
|
||||
import createCache from "@emotion/cache";
|
||||
import {prefixer} from "stylis";
|
||||
import stylisRTLPlugin from "stylis-plugin-rtl";
|
||||
import {CacheProvider} from "@emotion/react";
|
||||
|
||||
const cache = createCache({
|
||||
key: 'mui-rtl',
|
||||
stylisPlugins: [prefixer, stylisRTLPlugin],
|
||||
});
|
||||
|
||||
const cacheProviderRtl = (props) => {
|
||||
return <CacheProvider value={cache}>{props.children}</CacheProvider>;
|
||||
}
|
||||
|
||||
export default cacheProviderRtl
|
||||
8
src/core/utils/theme.js
Normal file
8
src/core/utils/theme.js
Normal file
@@ -0,0 +1,8 @@
|
||||
'use client'
|
||||
import {createTheme} from "@mui/material";
|
||||
|
||||
const theme = createTheme({
|
||||
direction: 'rtl'
|
||||
});
|
||||
|
||||
export default theme
|
||||
Reference in New Issue
Block a user