Skip to content

Commit

Permalink
refactor: add display names
Browse files Browse the repository at this point in the history
  • Loading branch information
gpichot committed Mar 20, 2023
1 parent f541504 commit 93c8630
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions packages/react-query-devtools/src/styledComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const Panel = styled(
},
)

Panel.displayName = 'Panel'

export const ActiveQueryPanel = styled(
'div',
() => ({
Expand All @@ -36,6 +38,8 @@ export const ActiveQueryPanel = styled(
},
)

ActiveQueryPanel.displayName = 'ActiveQueryPanel'

export const Button = styled('button', (props, theme) => ({
appearance: 'none',
fontSize: '.9em',
Expand All @@ -49,13 +53,17 @@ export const Button = styled('button', (props, theme) => ({
cursor: 'pointer',
}))

Button.displayName = 'Button'

export const QueryKeys = styled('span', {
display: 'flex',
flexWrap: 'wrap',
gap: '0.5em',
fontSize: '0.9em',
})

QueryKeys.displayName = 'QueryKeys'

export const QueryKey = styled('span', {
display: 'inline-flex',
alignItems: 'center',
Expand All @@ -65,12 +73,16 @@ export const QueryKey = styled('span', {
borderRadius: '.2em',
})

QueryKey.displayName = 'QueryKey'

export const Code = styled('code', {
fontSize: '.9em',
color: 'inherit',
background: 'inherit',
})

Code.displayName = 'Code'

export const Input = styled('input', (_props, theme) => ({
backgroundColor: theme.inputBackgroundColor,
border: 0,
Expand All @@ -81,6 +93,8 @@ export const Input = styled('input', (_props, theme) => ({
padding: '.3em .4em',
}))

Input.displayName = 'Input'

export const Select = styled(
'select',
(_props, theme) => ({
Expand Down Expand Up @@ -108,3 +122,5 @@ export const Select = styled(
},
},
)

Select.displayName = 'Select'

0 comments on commit 93c8630

Please sign in to comment.