From 489f2b5bcc0db7c2e74a64c6ce0f515d57e31283 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 4 Dec 2023 16:00:25 +0530 Subject: [PATCH] feat: separate select component --- app/javascript/v3/components/Form/Select.vue | 88 +++++++++++++++++++ .../v3/views/auth/start/SetupCompany.vue | 73 ++++----------- 2 files changed, 105 insertions(+), 56 deletions(-) create mode 100644 app/javascript/v3/components/Form/Select.vue diff --git a/app/javascript/v3/components/Form/Select.vue b/app/javascript/v3/components/Form/Select.vue new file mode 100644 index 000000000..b3d49cf77 --- /dev/null +++ b/app/javascript/v3/components/Form/Select.vue @@ -0,0 +1,88 @@ + + + + + diff --git a/app/javascript/v3/views/auth/start/SetupCompany.vue b/app/javascript/v3/views/auth/start/SetupCompany.vue index e33cd5228..af4cf8c92 100644 --- a/app/javascript/v3/views/auth/start/SetupCompany.vue +++ b/app/javascript/v3/views/auth/start/SetupCompany.vue @@ -27,56 +27,27 @@ :label="$t('ONBOARDING.COMPANY.TIMEZONE.LABEL')" :placeholder="$t('ONBOARDING.COMPANY.TIMEZONE.PLACEHOLDER')" /> - - - - + + - - + :placeholder="$t('ONBOARDING.COMPANY.SIZE.PLACEHOLDER')" + :options="companySizeOptions" + /> import FormInput from '../../../components/Form/Input.vue'; -import WithLabel from '../../../components/Form/WithLabel.vue'; +import FormSelect from '../../../components/Form/Select.vue'; import SubmitButton from '../../../components/Button/SubmitButton'; import ModalLayout from './components/ModalLayout.vue'; import configMixin from 'shared/mixins/configMixin'; @@ -98,7 +69,7 @@ export default { FormInput, SubmitButton, ModalLayout, - WithLabel, + FormSelect, }, mixins: [configMixin], data() { @@ -129,13 +100,3 @@ export default { }, }; - -