Dependencies Updates, Sidebar fixes, default plan, Radix single package (#297)

* Refactor Radix UI imports and update package dependencies, fix Sidebar "group" references, add default value to plan picker to preselect a plan
This commit is contained in:
Giancarlo Buomprisco
2025-07-11 16:57:27 +07:00
committed by GitHub
parent 1d734e6818
commit 50337298fd
72 changed files with 1902 additions and 1263 deletions

View File

@@ -45,6 +45,11 @@ export function PlanPicker(
onSubmit: (data: { planId: string; productId: string }) => void;
canStartTrial?: boolean;
pending?: boolean;
value?: {
interval: string;
planId: string;
productId: string;
};
}>,
) {
const { t } = useTranslation(`billing`);
@@ -81,9 +86,9 @@ export function PlanPicker(
),
),
defaultValues: {
interval: intervals[0],
planId: '',
productId: '',
interval: props.value?.interval ?? intervals[0],
planId: props.value?.planId ?? '',
productId: props.value?.productId ?? '',
},
});