Skip to content

Commit

Permalink
fix: 🐛 steps style problem fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
oguzkaganeren committed Jan 12, 2023
1 parent 30496df commit 69b8992
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import { ChakraProvider, extendTheme, useColorModeValue } from '@chakra-ui/react';
import { StepsStyleConfig } from 'chakra-ui-steps';
import { ChakraProvider, extendTheme } from '@chakra-ui/react';
import { StepsTheme } from 'chakra-ui-steps';
import { RecoilRoot } from 'recoil';

import App from './screens/App';
Expand All @@ -20,25 +20,14 @@ function disableContextMenuOnRelease() {
return false;
}, { capture: true });
}
const CustomSteps = {
...StepsStyleConfig,
baseStyle: (props:any) => ({
...StepsStyleConfig.baseStyle(props),
stepIconContainer: {
...StepsStyleConfig.baseStyle(props).stepIconContainer,
_activeStep: {
bg: useColorModeValue('white.800', 'white.500'),
},
},
}),
};

const theme = extendTheme({
config: {
initialColorMode: 'system',
useSystemColorMode: false,
},
components: {
Steps: CustomSteps,
Steps: StepsTheme,
},
});
root.render(
Expand Down

0 comments on commit 69b8992

Please sign in to comment.