Skip to content

Commit 740a66b

Browse files
raaymaxhuv1k
authored andcommitted
Changed property name to remove warning (#895)
Some issue with styled-components is causing warning message
1 parent fcbee91 commit 740a66b

File tree

1 file changed

+4
-4
lines changed
  • packages/graphql-playground-react/src/components/Playground/DocExplorer

1 file changed

+4
-4
lines changed

packages/graphql-playground-react/src/components/Playground/DocExplorer/ColumnDoc.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const ColumnDoc = ({
1414
width = columnWidth,
1515
}: Props) => {
1616
return (
17-
<Column style={{ width }} overflow={overflow}>
17+
<Column style={{ width }} verticalScroll={overflow}>
1818
{children}
1919
</Column>
2020
)
@@ -23,7 +23,7 @@ const ColumnDoc = ({
2323
export default ColumnDoc
2424

2525
interface ColumnProps {
26-
overflow: boolean
26+
verticalScroll: boolean
2727
}
2828

2929
const Column = styled<ColumnProps, 'div'>('div')`
@@ -32,6 +32,6 @@ const Column = styled<ColumnProps, 'div'>('div')`
3232
flex-flow: column;
3333
padding-bottom: 20px;
3434
border-right: 1px solid ${p => p.theme.colours.black10};
35-
overflow-x: ${p => (p.overflow ? 'hidden' : 'auto')}
36-
overflow-y: ${p => (p.overflow ? 'scroll' : 'auto')}
35+
overflow-x: ${p => (p.verticalScroll ? 'hidden' : 'auto')}
36+
overflow-y: ${p => (p.verticalScroll ? 'scroll' : 'auto')}
3737
`

0 commit comments

Comments
 (0)