From 7e3785416f6fa8e85e1561b4b985d7fcc38bebcf Mon Sep 17 00:00:00 2001 From: Oakerin Date: Thu, 25 Jul 2024 10:47:02 +0300 Subject: [PATCH] feat: remove typography default props --- packages/desktop/src/main/ts/typography/Caption.tsx | 4 ---- packages/desktop/src/main/ts/typography/Heading.tsx | 4 ---- packages/desktop/src/main/ts/typography/Paragraph.tsx | 7 ------- packages/desktop/src/main/ts/typography/Title.tsx | 4 ---- packages/mobile/src/main/ts/typography/Caption.tsx | 4 ---- packages/mobile/src/main/ts/typography/Heading.tsx | 4 ---- packages/mobile/src/main/ts/typography/Paragraph.tsx | 7 ------- packages/mobile/src/main/ts/typography/Title.tsx | 4 ---- 8 files changed, 38 deletions(-) diff --git a/packages/desktop/src/main/ts/typography/Caption.tsx b/packages/desktop/src/main/ts/typography/Caption.tsx index 53303335b..d2f668820 100644 --- a/packages/desktop/src/main/ts/typography/Caption.tsx +++ b/packages/desktop/src/main/ts/typography/Caption.tsx @@ -64,7 +64,3 @@ export const Caption: FC = ({ ) Caption.displayName = 'Caption' - -Caption.defaultProps = { - color: 'support', -} diff --git a/packages/desktop/src/main/ts/typography/Heading.tsx b/packages/desktop/src/main/ts/typography/Heading.tsx index 502937d08..b05334461 100644 --- a/packages/desktop/src/main/ts/typography/Heading.tsx +++ b/packages/desktop/src/main/ts/typography/Heading.tsx @@ -131,7 +131,3 @@ export const Heading: FC = ({ ) Heading.displayName = 'Heading' - -Heading.defaultProps = { - color: 'default', -} diff --git a/packages/desktop/src/main/ts/typography/Paragraph.tsx b/packages/desktop/src/main/ts/typography/Paragraph.tsx index 6bac7bc37..8fbed6a34 100644 --- a/packages/desktop/src/main/ts/typography/Paragraph.tsx +++ b/packages/desktop/src/main/ts/typography/Paragraph.tsx @@ -141,10 +141,3 @@ export const Paragraph: FC = ({ ) Paragraph.displayName = 'Paragraph' - -Paragraph.defaultProps = { - size: 'm', - bold: false, - compact: false, - color: 'default', -} diff --git a/packages/desktop/src/main/ts/typography/Title.tsx b/packages/desktop/src/main/ts/typography/Title.tsx index 9bf1d7e8c..8f54a3962 100644 --- a/packages/desktop/src/main/ts/typography/Title.tsx +++ b/packages/desktop/src/main/ts/typography/Title.tsx @@ -100,7 +100,3 @@ export const Title: FC = ({ ) Title.displayName = 'Title' - -Title.defaultProps = { - color: 'default', -} diff --git a/packages/mobile/src/main/ts/typography/Caption.tsx b/packages/mobile/src/main/ts/typography/Caption.tsx index b1652713e..43f6028e6 100644 --- a/packages/mobile/src/main/ts/typography/Caption.tsx +++ b/packages/mobile/src/main/ts/typography/Caption.tsx @@ -49,7 +49,3 @@ export const Caption: FC = ({ ) Caption.displayName = 'Caption' - -Caption.defaultProps = { - color: 'support', -} diff --git a/packages/mobile/src/main/ts/typography/Heading.tsx b/packages/mobile/src/main/ts/typography/Heading.tsx index c510f22d7..b3e107688 100644 --- a/packages/mobile/src/main/ts/typography/Heading.tsx +++ b/packages/mobile/src/main/ts/typography/Heading.tsx @@ -115,7 +115,3 @@ export const Heading: FC = ({ ) Heading.displayName = 'Heading' - -Heading.defaultProps = { - color: 'default', -} diff --git a/packages/mobile/src/main/ts/typography/Paragraph.tsx b/packages/mobile/src/main/ts/typography/Paragraph.tsx index 9238a3594..e1b3e8ec3 100644 --- a/packages/mobile/src/main/ts/typography/Paragraph.tsx +++ b/packages/mobile/src/main/ts/typography/Paragraph.tsx @@ -132,10 +132,3 @@ export const Paragraph: FC = ({ ) Paragraph.displayName = 'Paragraph' - -Paragraph.defaultProps = { - size: 'm', - bold: false, - compact: false, - color: 'default', -} diff --git a/packages/mobile/src/main/ts/typography/Title.tsx b/packages/mobile/src/main/ts/typography/Title.tsx index 1c74f6901..5dd837f6f 100644 --- a/packages/mobile/src/main/ts/typography/Title.tsx +++ b/packages/mobile/src/main/ts/typography/Title.tsx @@ -91,7 +91,3 @@ export const Title: FC = ({ ) Title.displayName = 'Title' - -Title.defaultProps = { - color: 'default', -}