From e8a61975b320500909a2836a1b3ce236e29a5d75 Mon Sep 17 00:00:00 2001 From: Volodymyr Gerun Date: Wed, 31 Jul 2024 13:37:53 +0300 Subject: [PATCH] style: add props double asterisk --- app/ui/info-badge.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/ui/info-badge.tsx b/app/ui/info-badge.tsx index a00b36f..362c684 100644 --- a/app/ui/info-badge.tsx +++ b/app/ui/info-badge.tsx @@ -1,12 +1,18 @@ type TProps = { text: string withAsterisk?: boolean + withDoubleAsterisk?: boolean } -export default function InfoBadge({ text, withAsterisk = true }: TProps) { +export default function InfoBadge({ + text, + withAsterisk = true, + withDoubleAsterisk = false, +}: TProps) { return ( - {withAsterisk && ' * '} + {withDoubleAsterisk && ' ** '} + {!withDoubleAsterisk && withAsterisk && ' * '} {text} )