Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alpaca-tc committed Mar 31, 2024
1 parent c84287e commit fcd5e74
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const DefinitionList: FC<Props> = ({ selectedDefinitionIds, setSelectedDe
return isLoading ? (
<Loading text="Loading..." alt="Loading" />
) : (
<StyledSection foldingSection={foldingSection}>
<StyledSection $foldingSection={foldingSection}>
<Cluster align="center">
<Cluster gap={0.5}>
<Button size="s" onClick={toggleFoldingSection}>
Expand Down Expand Up @@ -98,8 +98,8 @@ export const DefinitionList: FC<Props> = ({ selectedDefinitionIds, setSelectedDe
)
}

const StyledSection = styled(Section)<{ foldingSection: boolean }>`
const StyledSection = styled(Section)<{ $foldingSection: boolean }>`
height: inherit;
overflow: scroll;
width: ${({ foldingSection }) => (foldingSection ? `100%` : '200px')};
width: ${({ $foldingSection }) => ($foldingSection ? `100%` : '200px')};
`

0 comments on commit fcd5e74

Please sign in to comment.