Skip to content

Commit 1f2b375

Browse files
authored
Apply suggestions from code review
1 parent 54afa96 commit 1f2b375

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/styled/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Theme } from '@emotion/react'
2-
import oldStyled from './base'
2+
import baseStyled from './base'
33
import { ReactJSXIntrinsicElements } from './jsx-namespace'
44
import { tags } from './tags'
55
import {
@@ -33,7 +33,7 @@ export type StyledTags = {
3333
export interface CreateStyled extends BaseCreateStyled, StyledTags {}
3434

3535
// bind it to avoid mutating the original function
36-
const styled = oldStyled.bind(null) as CreateStyled
36+
const styled = baseStyled.bind(null) as CreateStyled
3737

3838
tags.forEach(tagName => {
3939
;(styled as any)[tagName] = styled(tagName as keyof typeof styled)

0 commit comments

Comments
 (0)