From 3572267c6e285d87f7c9efd006bf7c0daf592a5e Mon Sep 17 00:00:00 2001 From: Ivan Gabriele Date: Thu, 12 Sep 2024 15:06:30 +0200 Subject: [PATCH] fix(fields): prefix styled components props in DateRangePicker --- src/components/Banner/index.tsx | 4 +++- src/components/Dialog/Body.tsx | 4 +++- src/fields/DateRangePicker/RangedTimePicker.tsx | 10 +++++----- src/fields/DateRangePicker/index.tsx | 14 +++++++------- src/fields/TextInput.tsx | 4 +++- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/src/components/Banner/index.tsx b/src/components/Banner/index.tsx index 825417e70..20055d605 100644 --- a/src/components/Banner/index.tsx +++ b/src/components/Banner/index.tsx @@ -178,7 +178,9 @@ const ContentWrapper = styled.div` const ButtonWrapper = styled.div` align-self: center; ` -const HideText = styled.span<{ $level: Level }>` +const HideText = styled.span<{ + $level: Level +}>` ${p => p.$level === Level.ERROR ? css` diff --git a/src/components/Dialog/Body.tsx b/src/components/Dialog/Body.tsx index d25c4cf06..d1cee386d 100644 --- a/src/components/Dialog/Body.tsx +++ b/src/components/Dialog/Body.tsx @@ -1,6 +1,8 @@ import styled from 'styled-components' -export const Body = styled.div<{ $color?: string }>` +export const Body = styled.div<{ + $color?: string +}>` background-color: ${p => p.theme.color.white}; border-top-left-radius: 2px; border-top-right-radius: 2px; diff --git a/src/fields/DateRangePicker/RangedTimePicker.tsx b/src/fields/DateRangePicker/RangedTimePicker.tsx index e6687b43f..b827bbd05 100644 --- a/src/fields/DateRangePicker/RangedTimePicker.tsx +++ b/src/fields/DateRangePicker/RangedTimePicker.tsx @@ -96,9 +96,9 @@ export function RangedTimePicker({ filter, minutesRange, onChange }: RangedTimeP {filteredRangedTimeOptions.map(({ label, value }, index) => (