Skip to content

Commit

Permalink
chore(control-box): refactor (#6508)
Browse files Browse the repository at this point in the history
  • Loading branch information
anubra266 committed Aug 19, 2022
1 parent 196b19f commit 4456619
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/wise-fireants-collect.md
@@ -0,0 +1,5 @@
---
"@chakra-ui/control-box": patch
---

Refactor control box
3 changes: 0 additions & 3 deletions packages/control-box/package.json
Expand Up @@ -29,9 +29,6 @@
"bugs": {
"url": "https://github.com/chakra-ui/chakra-ui/issues"
},
"dependencies": {
"@chakra-ui/utils": "workspace:*"
},
"devDependencies": {
"@chakra-ui/system": "workspace:*",
"@chakra-ui/visually-hidden": "workspace:*",
Expand Down
5 changes: 1 addition & 4 deletions packages/control-box/src/control-box.tsx
@@ -1,5 +1,4 @@
import { chakra, SystemStyleObject, HTMLChakraProps } from "@chakra-ui/system"
import { __DEV__ } from "@chakra-ui/utils"

export interface ControlBoxOptions {
type?: "checkbox" | "radio"
Expand Down Expand Up @@ -79,8 +78,6 @@ export const ControlBox: React.FC<ControlBoxProps> = (props) => {
)
}

if (__DEV__) {
ControlBox.displayName = "ControlBox"
}
ControlBox.displayName = "ControlBox"

export default ControlBox
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4456619

Please sign in to comment.