Skip to content

Commit

Permalink
Merge pull request #18 from shapeshift/feat_chakra
Browse files Browse the repository at this point in the history
  • Loading branch information
gomesalexandre authored Jan 8, 2024
2 parents 22d11df + 0990e7a commit e929eb2
Show file tree
Hide file tree
Showing 3 changed files with 1,161 additions and 8 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
"type-check": "yarn tsc --noEmit"
},
"dependencies": {
"@chakra-ui/react": "^2.8.2",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"framer-motion": "^10.17.9",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
Expand Down
7 changes: 6 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import './index.css'

import { ChakraProvider, createLocalStorageManager } from '@chakra-ui/react'
import App from 'App'
import React from 'react'
import ReactDOM from 'react-dom/client'

const manager = createLocalStorageManager('ss-theme')

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
<ChakraProvider colorModeManager={manager} cssVarsRoot='body'>
<App />
</ChakraProvider>
</React.StrictMode>,
)
Loading

0 comments on commit e929eb2

Please sign in to comment.