refactor: corrige l'erreur div descendant de p
parent
30ea82c696
commit
cbacb19b24
|
@ -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]};
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue