diff --git a/client/src/components/onboarding/PaymentMethod.vue b/client/src/components/onboarding/PaymentMethod.vue new file mode 100644 index 00000000..6271f57e --- /dev/null +++ b/client/src/components/onboarding/PaymentMethod.vue @@ -0,0 +1,36 @@ + + + diff --git a/client/src/components/onboarding/PersonalAddress.vue b/client/src/components/onboarding/PersonalAddress.vue index 9cbf1d9f..ddbfc7dd 100644 --- a/client/src/components/onboarding/PersonalAddress.vue +++ b/client/src/components/onboarding/PersonalAddress.vue @@ -2,42 +2,22 @@ import ItDatePicker from "@/components/ui/ItDatePicker.vue"; import { useEntities } from "@/services/entities"; import "@vuepic/vue-datepicker/dist/main.css"; -import { t } from "i18next"; -import { computed } from "vue"; -const props = defineProps<{ - modelValue: { - first_name: string; - last_name: string; - street: string; - street_number: string; - postal_code: string; - city: string; - country_code: string; - payment_method: string; +const model = defineModel<{ + first_name: string; + last_name: string; + street: string; + street_number: string; + postal_code: string; + city: string; + country_code: string; + payment_method: string; - phone_number: string; - birth_date: string; - }; -}>(); - -const emit = defineEmits(["update:modelValue"]); + phone_number: string; + birth_date: string; +}>({ required: true }); const { countries } = useEntities(); - -const paymentMethods = [ - { value: "credit_card", label: t("a.Debit-/Kreditkarte/Twint") }, - { value: "cembra_byjuno", label: t("a.Rechnung") }, -]; - -const address = computed({ - get() { - return props.modelValue; - }, - set(value) { - emit("update:modelValue", value); - }, -});