diff --git a/packages/console/src/onboarding/pages/About/index.tsx b/packages/console/src/onboarding/pages/About/index.tsx index f728c66ae..de5be4a21 100644 --- a/packages/console/src/onboarding/pages/About/index.tsx +++ b/packages/console/src/onboarding/pages/About/index.tsx @@ -15,7 +15,7 @@ import * as pageLayout from '@/onboarding/scss/layout.module.scss'; import ActionBar from '../../components/ActionBar'; import { CardSelector, MultiCardSelector } from '../../components/CardSelector'; import type { Questionnaire } from '../../types'; -import { OnboardingPage } from '../../types'; +import { Project, OnboardingPage } from '../../types'; import { getOnboardingPage } from '../../utils'; import * as styles from './index.module.scss'; import { titleOptions, companySizeOptions, reasonOptions } from './options'; @@ -29,6 +29,8 @@ const About = () => { update, } = useUserOnboardingData(); + const isCompanyProject = questionnaire?.project === Project.Company; + const { control, register, handleSubmit, reset } = useForm({ mode: 'onChange', }); @@ -58,50 +60,59 @@ const About = () => {
{t('cloud.about.title')}
{t('cloud.about.description')}
- - ( - { - onChange(value.length === 0 ? undefined : value); - }} + {isCompanyProject && ( + <> + + ( + { + onChange(value.length === 0 ? undefined : value); + }} + /> + )} /> - )} - /> - - - - - - ( - { - onChange(conditional(value && value)); - }} + + + - )} - /> - + + + ( + { + onChange(conditional(value && value)); + }} + /> + )} + /> + + + )} diff --git a/packages/console/src/onboarding/pages/About/options.tsx b/packages/console/src/onboarding/pages/About/options.tsx index c52d56722..76310cad2 100644 --- a/packages/console/src/onboarding/pages/About/options.tsx +++ b/packages/console/src/onboarding/pages/About/options.tsx @@ -16,7 +16,7 @@ export const titleOptions: MultiCardSelectorOption[] = [ export const companySizeOptions: CardSelectorOption[] = [ { title: 'cloud.about.company_options.size_1', value: CompanySize.Scale1 }, - { title: 'cloud.about.company_options.size_1_49', value: CompanySize.Scale2 }, + { title: 'cloud.about.company_options.size_2_49', value: CompanySize.Scale2 }, { title: 'cloud.about.company_options.size_50_199', value: CompanySize.Scale3 }, { title: 'cloud.about.company_options.size_200_999', value: CompanySize.Scale4 }, { title: 'cloud.about.company_options.size_1000_plus', value: CompanySize.Scale5 }, diff --git a/packages/console/src/onboarding/types.ts b/packages/console/src/onboarding/types.ts index 134fe5eae..a0d200294 100644 --- a/packages/console/src/onboarding/types.ts +++ b/packages/console/src/onboarding/types.ts @@ -33,7 +33,7 @@ export enum Title { export enum CompanySize { Scale1 = '1', - Scale2 = '1-49', + Scale2 = '2-49', Scale3 = '50-199', Scale4 = '200-999', Scale5 = '1000+', diff --git a/packages/phrases/src/locales/de/translation/admin-console/cloud.ts b/packages/phrases/src/locales/de/translation/admin-console/cloud.ts index 72c66dfa5..a58b62f92 100644 --- a/packages/phrases/src/locales/de/translation/admin-console/cloud.ts +++ b/packages/phrases/src/locales/de/translation/admin-console/cloud.ts @@ -32,7 +32,7 @@ const cloud = { company_size_field: 'How’s your company size?', // UNTRANSLATED company_options: { size_1: '1', // UNTRANSLATED - size_1_49: '1-49', // UNTRANSLATED + size_2_49: '2-49', // UNTRANSLATED size_50_199: '50-199', // UNTRANSLATED size_200_999: '200-999', // UNTRANSLATED size_1000_plus: '1000+', // UNTRANSLATED diff --git a/packages/phrases/src/locales/en/translation/admin-console/cloud.ts b/packages/phrases/src/locales/en/translation/admin-console/cloud.ts index 12e50139b..0ed75f843 100644 --- a/packages/phrases/src/locales/en/translation/admin-console/cloud.ts +++ b/packages/phrases/src/locales/en/translation/admin-console/cloud.ts @@ -32,7 +32,7 @@ const cloud = { company_size_field: 'How’s your company size?', company_options: { size_1: '1', - size_1_49: '1-49', + size_2_49: '2-49', size_50_199: '50-199', size_200_999: '200-999', size_1000_plus: '1000+', diff --git a/packages/phrases/src/locales/fr/translation/admin-console/cloud.ts b/packages/phrases/src/locales/fr/translation/admin-console/cloud.ts index 72c66dfa5..a58b62f92 100644 --- a/packages/phrases/src/locales/fr/translation/admin-console/cloud.ts +++ b/packages/phrases/src/locales/fr/translation/admin-console/cloud.ts @@ -32,7 +32,7 @@ const cloud = { company_size_field: 'How’s your company size?', // UNTRANSLATED company_options: { size_1: '1', // UNTRANSLATED - size_1_49: '1-49', // UNTRANSLATED + size_2_49: '2-49', // UNTRANSLATED size_50_199: '50-199', // UNTRANSLATED size_200_999: '200-999', // UNTRANSLATED size_1000_plus: '1000+', // UNTRANSLATED diff --git a/packages/phrases/src/locales/ko/translation/admin-console/cloud.ts b/packages/phrases/src/locales/ko/translation/admin-console/cloud.ts index 72c66dfa5..a58b62f92 100644 --- a/packages/phrases/src/locales/ko/translation/admin-console/cloud.ts +++ b/packages/phrases/src/locales/ko/translation/admin-console/cloud.ts @@ -32,7 +32,7 @@ const cloud = { company_size_field: 'How’s your company size?', // UNTRANSLATED company_options: { size_1: '1', // UNTRANSLATED - size_1_49: '1-49', // UNTRANSLATED + size_2_49: '2-49', // UNTRANSLATED size_50_199: '50-199', // UNTRANSLATED size_200_999: '200-999', // UNTRANSLATED size_1000_plus: '1000+', // UNTRANSLATED diff --git a/packages/phrases/src/locales/pt-br/translation/admin-console/cloud.ts b/packages/phrases/src/locales/pt-br/translation/admin-console/cloud.ts index 72c66dfa5..a58b62f92 100644 --- a/packages/phrases/src/locales/pt-br/translation/admin-console/cloud.ts +++ b/packages/phrases/src/locales/pt-br/translation/admin-console/cloud.ts @@ -32,7 +32,7 @@ const cloud = { company_size_field: 'How’s your company size?', // UNTRANSLATED company_options: { size_1: '1', // UNTRANSLATED - size_1_49: '1-49', // UNTRANSLATED + size_2_49: '2-49', // UNTRANSLATED size_50_199: '50-199', // UNTRANSLATED size_200_999: '200-999', // UNTRANSLATED size_1000_plus: '1000+', // UNTRANSLATED diff --git a/packages/phrases/src/locales/pt-pt/translation/admin-console/cloud.ts b/packages/phrases/src/locales/pt-pt/translation/admin-console/cloud.ts index 72c66dfa5..a58b62f92 100644 --- a/packages/phrases/src/locales/pt-pt/translation/admin-console/cloud.ts +++ b/packages/phrases/src/locales/pt-pt/translation/admin-console/cloud.ts @@ -32,7 +32,7 @@ const cloud = { company_size_field: 'How’s your company size?', // UNTRANSLATED company_options: { size_1: '1', // UNTRANSLATED - size_1_49: '1-49', // UNTRANSLATED + size_2_49: '2-49', // UNTRANSLATED size_50_199: '50-199', // UNTRANSLATED size_200_999: '200-999', // UNTRANSLATED size_1000_plus: '1000+', // UNTRANSLATED diff --git a/packages/phrases/src/locales/tr-tr/translation/admin-console/cloud.ts b/packages/phrases/src/locales/tr-tr/translation/admin-console/cloud.ts index 72c66dfa5..a58b62f92 100644 --- a/packages/phrases/src/locales/tr-tr/translation/admin-console/cloud.ts +++ b/packages/phrases/src/locales/tr-tr/translation/admin-console/cloud.ts @@ -32,7 +32,7 @@ const cloud = { company_size_field: 'How’s your company size?', // UNTRANSLATED company_options: { size_1: '1', // UNTRANSLATED - size_1_49: '1-49', // UNTRANSLATED + size_2_49: '2-49', // UNTRANSLATED size_50_199: '50-199', // UNTRANSLATED size_200_999: '200-999', // UNTRANSLATED size_1000_plus: '1000+', // UNTRANSLATED diff --git a/packages/phrases/src/locales/zh-cn/translation/admin-console/cloud.ts b/packages/phrases/src/locales/zh-cn/translation/admin-console/cloud.ts index 72c66dfa5..a58b62f92 100644 --- a/packages/phrases/src/locales/zh-cn/translation/admin-console/cloud.ts +++ b/packages/phrases/src/locales/zh-cn/translation/admin-console/cloud.ts @@ -32,7 +32,7 @@ const cloud = { company_size_field: 'How’s your company size?', // UNTRANSLATED company_options: { size_1: '1', // UNTRANSLATED - size_1_49: '1-49', // UNTRANSLATED + size_2_49: '2-49', // UNTRANSLATED size_50_199: '50-199', // UNTRANSLATED size_200_999: '200-999', // UNTRANSLATED size_1000_plus: '1000+', // UNTRANSLATED