diff --git a/components/signup-card.vue b/components/signup-card.vue
index ad4810a..f244c31 100644
--- a/components/signup-card.vue
+++ b/components/signup-card.vue
@@ -24,63 +24,75 @@
-
+
-
+
-
-
+
+
-
+
@@ -102,6 +114,15 @@ const props = defineProps({
}
})
+// ======================================================================== Data
+const firstName = ref(false)
+const lastName = ref(false)
+const email = ref(false)
+const org = ref(false)
+const country = ref(false)
+const filecoinFamiliarity = ref(false)
+
+
// ==================================================================== Computed
const title = computed(() => { return props.signupCard.title })
@@ -114,19 +135,36 @@ const cardStyles = computed(() => {
return null
})
-const firstName = computed(() => { return props.signupCard.signup_form.first_name })
+const firstNameField = computed(() => { return props.signupCard.signup_form.first_name })
-const lastName = computed(() => { return props.signupCard.signup_form.last_name })
+const lastNameField = computed(() => { return props.signupCard.signup_form.last_name })
-const email = computed(() => { return props.signupCard.signup_form.email })
+const emailField = computed(() => { return props.signupCard.signup_form.email })
-const org = computed(() => { return props.signupCard.signup_form.org })
+const orgField = computed(() => { return props.signupCard.signup_form.org })
-const country = computed(() => { return props.signupCard.signup_form.country })
-
-const familiarity = computed(() => { return props.signupCard.signup_form.filecoin_familiarity })
+const countryField = computed(() => { return props.signupCard.signup_form.country })
+const familiarityField = computed(() => { return props.signupCard.signup_form.filecoin_familiarity })
+// ===================================================================== Methdos
+/**
+ * @method selectOption
+ */
+const selectOption = (setSelected, closePanel, option, field) => {
+ if (option) {
+ setSelected(option)
+ closePanel()
+ switch(field) {
+ case 'country':
+ country.value = option
+ break
+ case 'familiarity':
+ filecoinFamiliarity.value = option
+ break
+ }
+ }
+}