Skip to content

Commit d9cd754

Browse files
committed
Fix default typography as
1 parent 5282ce2 commit d9cd754

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Typography/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ export type ExtendedTypographyProps =
2020

2121
const Typography = forwardRef<HTMLDivElement, ExtendedTypographyProps>(({ as: _as, ...p }, ref) => {
2222
const { typography } = useTheme();
23-
const type = p.variant ?? p.v ?? 'p';
23+
const type = p.variant ?? p.v;
2424

25-
const as: TypographyAs = _as ?? (type === 'lead' ? 'p' : type);
25+
const as: TypographyAs | undefined = _as ?? (type === 'lead' ? 'p' : type);
2626

2727
const props = useMerge(
2828
p,

0 commit comments

Comments
 (0)