Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 47f0770

Browse files
Anton BilovusTigge
authored andcommitted
fix(utils): make all Label props optional
1 parent 6639bf6 commit 47f0770

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/utils/withField.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import { Typography } from '../Typography'
55
import { componentSize, spacing, opacity } from '../designparams'
66

77
interface LabelProps {
8-
readonly compact: boolean
9-
readonly disabled: boolean
8+
readonly compact?: boolean
9+
readonly disabled?: boolean
1010
}
1111

1212
export const Label = styled.div<LabelProps>`
1313
height: ${({ compact }) =>
14-
!compact ? componentSize.medium : componentSize.small};
14+
compact !== true ? componentSize.medium : componentSize.small};
1515
display: flex;
1616
align-items: center;
1717
color: ${({ theme }) => theme.color.text03()};
1818
cursor: default;
1919
2020
${({ disabled }) =>
21-
disabled
21+
disabled === true
2222
? css`
2323
opacity: ${opacity[48]};
2424
pointer-events: none;

0 commit comments

Comments
 (0)