Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit cb216f9

Browse files
committed
chore: removed unused code
1 parent 270c6de commit cb216f9

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

packages/chakra-ui-core/src/CThemeProvider/CThemeProvider.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
import { colorModeObserver } from '../utils/color-mode-observer'
12-
import { systemProps } from '../utils'
1312

1413
/**
1514
* CThemeProvider component
@@ -25,9 +24,7 @@ const CThemeProvider = {
2524
* If no `ColorModeProvider` is provided in children/ consumer app, all chakra
2625
* components will consume the $chakraColorMode from here.
2726
*/
28-
$chakraColorMode: () => 'light',
29-
30-
$chakraSystem: props => systemProps({ ...props, theme: this.theme })
27+
$chakraColorMode: () => 'light'
3128
}
3229
},
3330
computed: {

packages/chakra-ui-core/src/utils/components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function createWatcher (property) {
3838
export const createStyledAttrsMixin = (name, isPseudo) => ({
3939
name,
4040
inheritAttrs: false,
41-
inject: ['$chakraTheme', '$chakraColorMode', '$chakraSystem'],
41+
inject: ['$chakraTheme', '$chakraColorMode'],
4242
data () {
4343
return {
4444
attrs$: {},

tests/test-utils/test-utils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ import userEvent from '@testing-library/user-event'
44

55
import icons from '@/packages/chakra-ui-core/src/lib/internal-icons'
66
import theme from '@/packages/chakra-ui-core/src/lib/theme'
7-
import { systemProps } from '@/packages/chakra-ui-core/src/utils'
87

98
const defaultProviders = options => ({
109
$chakraTheme: () => theme,
1110
$chakraColorMode: () => 'light',
1211
$chakraIcons: icons,
13-
$chakraSystem: props => systemProps({ ...props, theme }),
1412
...options
1513
})
1614

0 commit comments

Comments
 (0)