diff --git a/src/components/AppCheckbox.ts b/src/components/AppCheckbox.ts new file mode 100644 index 0000000..6e97c6e --- /dev/null +++ b/src/components/AppCheckbox.ts @@ -0,0 +1,15 @@ +type Booleanish = boolean | "true" | "false"; + +export type CheckboxOptions = { + ariaLabel?: string; + disabled?: Booleanish; + id?: string; + inline?: Booleanish; + label?: string; + modelValue?: Booleanish; + name?: string; + required?: Booleanish; + reverse?: Booleanish; + switch?: Booleanish; + value?: string; +}; diff --git a/src/components/AppCheckbox.vue b/src/components/AppCheckbox.vue new file mode 100644 index 0000000..ffc84c5 --- /dev/null +++ b/src/components/AppCheckbox.vue @@ -0,0 +1,62 @@ + + + diff --git a/src/views/account/RecoverPasswordView.vue b/src/views/account/RecoverPasswordView.vue index 78fe4f0..b5f94f6 100644 --- a/src/views/account/RecoverPasswordView.vue +++ b/src/views/account/RecoverPasswordView.vue @@ -3,6 +3,7 @@ import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { ref } from "vue"; import { useRouter } from "vue-router"; +import AppCheckbox from "@/components/AppCheckbox.vue"; import type { RecoverPasswordPayload } from "@/types/account"; import { recoverPassword } from "@/api/account"; @@ -34,10 +35,7 @@ function onResetPassword(): void {