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

Commit c858582

Browse files
committed
chore: remove unused injections
1 parent 282b1d2 commit c858582

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ const CThemeProvider = {
1919
provide () {
2020
return {
2121
$chakraTheme: () => this.theme,
22-
$chakraRawTheme: () => this.theme,
2322
$chakraIcons: this.icons,
2423
/**
2524
* By default the ThemeProvider exposes a colorMode value of light

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function createWatcher (property) {
3838
export const createStyledAttrsMixin = name => ({
3939
name,
4040
inheritAttrs: false,
41-
inject: ['$chakraTheme', '$chakraRawTheme', '$chakraColorMode'],
41+
inject: ['$chakraTheme', '$chakraColorMode'],
4242
data () {
4343
return {
4444
attrs$: {},
@@ -59,9 +59,6 @@ export const createStyledAttrsMixin = name => ({
5959
theme () {
6060
return this.$chakraTheme()
6161
},
62-
rawTheme () {
63-
return this.$chakraRawTheme()
64-
},
6562
/** Split style attributes and native attributes */
6663
splitProps () {
6764
const $attrs = this.$data.attrs$

0 commit comments

Comments
 (0)