🚸 (whatsapp) Improve upgrade plan for whatsapp notice

This commit is contained in:
Baptiste Arnaud
2023-09-27 14:22:51 +02:00
parent ec52fdc0ad
commit ccc34b3028
8 changed files with 36 additions and 35 deletions

View File

@@ -15,13 +15,11 @@ import {
import { useI18n } from '@/locales'
type Props = {
contentLabel: React.ReactNode
buttonLabel?: string
} & AlertProps &
Pick<ChangePlanModalProps, 'type' | 'excludedPlans'>
export const UnlockPlanAlertInfo = ({
contentLabel,
buttonLabel,
type,
excludedPlans,
@@ -39,7 +37,7 @@ export const UnlockPlanAlertInfo = ({
>
<HStack>
<AlertIcon />
<Text>{contentLabel}</Text>
<Text>{props.children}</Text>
</HStack>
<Button
colorScheme={props.status === 'warning' ? 'orange' : 'blue'}