mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-02-11 17:37:40 +08:00
update chakra to 1.7.1 & close dark mode
This commit is contained in:
parent
a3ffe0af92
commit
22c8eef4e4
@ -32,7 +32,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@chakra-ui/icons": "^1.0.15",
|
||||
"@chakra-ui/react": "^1.6.5",
|
||||
"@chakra-ui/react": "^1.7.1",
|
||||
"@emotion/react": "^11",
|
||||
"@emotion/styled": "^11",
|
||||
"@meta-ui/core": "^0.2.2",
|
||||
|
@ -30,7 +30,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@chakra-ui/icons": "^1.0.15",
|
||||
"@chakra-ui/react": "^1.6.5",
|
||||
"@chakra-ui/react": "^1.7.1",
|
||||
"@emotion/react": "^11",
|
||||
"@emotion/styled": "^11",
|
||||
"@meta-ui/core": "^0.2.2",
|
||||
|
@ -1,11 +1,16 @@
|
||||
import { ChakraProvider } from '@chakra-ui/react';
|
||||
import { ChakraProvider, extendTheme } from '@chakra-ui/react';
|
||||
import { ComponentImplementation } from '../../services/registry';
|
||||
import { createComponent } from '@meta-ui/core';
|
||||
import Slot from '../_internal/Slot';
|
||||
|
||||
const Root: ComponentImplementation<Record<string, unknown>> = ({ slotsMap }) => {
|
||||
return (
|
||||
<ChakraProvider>
|
||||
<ChakraProvider
|
||||
theme={extendTheme({
|
||||
initialColorMode: 'dark',
|
||||
useSystemColorMode: false,
|
||||
})}
|
||||
>
|
||||
<Slot slotsMap={slotsMap} slot="root" />
|
||||
</ChakraProvider>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user