refactor: corrige l'erreur div descendant de p

pull/3256/head
Alice Dahan 2024-11-12 10:35:41 +01:00 committed by liliced
parent 30ea82c696
commit cbacb19b24
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,7 @@ export { default as Container } from './Container'
export { default as Grid } from './Grid'
type SpacingProps = (
| { xxxl: true }
| { xxl: true }
| { xl: true }
| { lg: true }
@ -30,6 +31,7 @@ export function Spacing(props: SpacingProps) {
)
}
const SpacingStyled = styled.div<{ $size: keyof Theme['spacings'] }>`
const SpacingStyled = styled.span<{ $size: keyof Theme['spacings'] }>`
display: block;
min-height: ${({ theme, $size }) => theme.spacings[$size]};
`