Skip to content

Commit 7e1b8d3

Browse files
committed
fix: remove unused code
1 parent e8d9c3a commit 7e1b8d3

File tree

4 files changed

+2
-23
lines changed

4 files changed

+2
-23
lines changed

β€Žpackages/styled-components/src/Box.jsβ€Ž

Lines changed: 0 additions & 4 deletions
This file was deleted.

β€Žpackages/styled-components/src/Box.test.jsβ€Ž

Lines changed: 0 additions & 16 deletions
This file was deleted.

β€Žpackages/styled-components/src/index.jsβ€Ž

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@ export {
1414

1515
export { css } from './css'
1616
export { createGlobalStyle } from './createGlobalStyle'
17-
export { Box } from './Box'
18-
export { styled as default } from './styled'
17+
export { Box, styled as default } from './styled'

β€Žpackages/styled-components/src/styled.jsβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const createBoxComponent = component => ({ as, ...props }) => {
3838
return <Component {...omittedProps} />
3939
}
4040

41-
const Box = styled(createBoxComponent('div'))(createBox)
41+
export const Box = styled(createBoxComponent('div'))(createBox)
4242

4343
styled.box = styled(Box)
4444

0 commit comments

Comments
Β (0)