diff options
author | Fred Carlsen <fred@sjelfull.no> | 2018-12-15 06:16:44 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-15 06:16:44 +0800 |
commit | 2adeed38d817c1188a1b239e75beb5d618825409 (patch) | |
tree | d81ab2b3947106114bee2596fab1bf4205f0c2d5 | |
parent | f6f441cbe658d7ba3a367691a0ad596d0a85b1ac (diff) | |
download | dexon-sol-tools-2adeed38d817c1188a1b239e75beb5d618825409.tar dexon-sol-tools-2adeed38d817c1188a1b239e75beb5d618825409.tar.gz dexon-sol-tools-2adeed38d817c1188a1b239e75beb5d618825409.tar.bz2 dexon-sol-tools-2adeed38d817c1188a1b239e75beb5d618825409.tar.lz dexon-sol-tools-2adeed38d817c1188a1b239e75beb5d618825409.tar.xz dexon-sol-tools-2adeed38d817c1188a1b239e75beb5d618825409.tar.zst dexon-sol-tools-2adeed38d817c1188a1b239e75beb5d618825409.zip |
Fix default heading size
-rw-r--r-- | packages/website/ts/@next/components/text.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/website/ts/@next/components/text.tsx b/packages/website/ts/@next/components/text.tsx index 350c4c844..a687bca38 100644 --- a/packages/website/ts/@next/components/text.tsx +++ b/packages/website/ts/@next/components/text.tsx @@ -61,6 +61,10 @@ export const Heading: React.StatelessComponent<HeadingProps> = props => { ); }; +Heading.defaultProps = { + size: 'default', +}; + // No need to declare it twice as Styled then rewrap as a stateless comp // Note: this would be useful to be implemented the same way was "Heading" // and be more generic. e.g. <Text /> with a props asElement so we can use it |