From ef368b78d28649f0bdc466d3b6e4b4d33de60878 Mon Sep 17 00:00:00 2001 From: Dimitar Nestorov Date: Tue, 7 Feb 2023 13:48:09 +0200 Subject: [PATCH] refactor: avoid spreading in `Text` styles --- src/components/Typography/AnimatedText.tsx | 4 +- src/components/Typography/Text.tsx | 7 +- .../Appbar/__snapshots__/Appbar.test.tsx.snap | 2 +- .../__snapshots__/CheckboxItem.test.js.snap | 8 +-- .../RadioButtonItem.test.js.snap | 8 +-- .../__snapshots__/Text.test.tsx.snap | 32 ++++----- .../__snapshots__/Banner.test.tsx.snap | 8 +-- .../BottomNavigation.test.tsx.snap | 70 +++++++++---------- .../__snapshots__/Button.test.tsx.snap | 26 +++---- .../__snapshots__/Chip.test.tsx.snap | 12 ++-- .../__snapshots__/DataTable.test.js.snap | 2 +- .../__snapshots__/DrawerItem.test.js.snap | 6 +- .../__tests__/__snapshots__/FAB.test.tsx.snap | 4 +- .../__snapshots__/ListItem.test.js.snap | 2 +- .../__snapshots__/ListSection.test.js.snap | 4 +- .../__snapshots__/Menu.test.tsx.snap | 14 ++-- .../__snapshots__/MenuItem.test.js.snap | 10 +-- .../SegmentedButton.test.js.snap | 12 ++-- .../__snapshots__/Snackbar.test.tsx.snap | 6 +- 19 files changed, 117 insertions(+), 120 deletions(-) diff --git a/src/components/Typography/AnimatedText.tsx b/src/components/Typography/AnimatedText.tsx index b1b36b596a..f662103ec9 100644 --- a/src/components/Typography/AnimatedText.tsx +++ b/src/components/Typography/AnimatedText.tsx @@ -56,9 +56,9 @@ function AnimatedText({ diff --git a/src/components/Typography/Text.tsx b/src/components/Typography/Text.tsx index a2357dd323..0a16760912 100644 --- a/src/components/Typography/Text.tsx +++ b/src/components/Typography/Text.tsx @@ -109,12 +109,9 @@ const Text = (