if yes is selected, this options show up
This commit is contained in:
@@ -25,6 +25,11 @@ export type IllustrationSelection = {
|
||||
|
||||
export type BrandingSelection = 'full-cycle' | 'brush-up' | 'logo-only' | 'none' | null;
|
||||
|
||||
export type ShoppingCartSelection = {
|
||||
hasCart: boolean | null;
|
||||
multiplePurchases: boolean | null;
|
||||
}
|
||||
|
||||
export type FormData = {
|
||||
projectType: 'website' | 'mobile-app' | 'platform' | null;
|
||||
serviceType: 'entire-project' | 'development' | 'ui-ux-design' | 'identity-branding' | null;
|
||||
@@ -35,7 +40,7 @@ export type FormData = {
|
||||
illustrations: IllustrationSelection;
|
||||
branding: BrandingSelection;
|
||||
additionalFeatures: string[];
|
||||
shoppingCart: boolean | null;
|
||||
shoppingCart: ShoppingCartSelection;
|
||||
};
|
||||
|
||||
export function CostEstimatorForm() {
|
||||
@@ -55,7 +60,10 @@ export function CostEstimatorForm() {
|
||||
},
|
||||
branding: null,
|
||||
additionalFeatures: [],
|
||||
shoppingCart: null,
|
||||
shoppingCart: {
|
||||
hasCart: null,
|
||||
multiplePurchases: null,
|
||||
},
|
||||
});
|
||||
const [isPending, startTransition] = useTransition();
|
||||
|
||||
@@ -91,7 +99,10 @@ export function CostEstimatorForm() {
|
||||
},
|
||||
branding: null,
|
||||
additionalFeatures: [],
|
||||
shoppingCart: null,
|
||||
shoppingCart: {
|
||||
hasCart: null,
|
||||
multiplePurchases: null
|
||||
},
|
||||
});
|
||||
setCurrentStep(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user