From cd50d99c1fc7da9d39baefa6afe8396c48c96f08 Mon Sep 17 00:00:00 2001 From: chavda-bhavik Date: Mon, 2 Sep 2024 15:12:36 +0530 Subject: [PATCH] feat: Updated placeholders --- .../web/components/signin/OnboardUserForm.tsx | 16 ++++++++-------- apps/web/components/signin/index.tsx | 19 ++++++++++++++++--- apps/web/config/constants.config.ts | 11 +++++++++++ apps/web/pages/auth/reset/[token].tsx | 4 ++-- apps/web/pages/auth/reset/request.tsx | 4 ++-- apps/web/pages/auth/signup.tsx | 16 +++++++++++----- 6 files changed, 50 insertions(+), 20 deletions(-) diff --git a/apps/web/components/signin/OnboardUserForm.tsx b/apps/web/components/signin/OnboardUserForm.tsx index ddec36d4a..fad02208f 100644 --- a/apps/web/components/signin/OnboardUserForm.tsx +++ b/apps/web/components/signin/OnboardUserForm.tsx @@ -4,7 +4,7 @@ import { Title, Text, Stack, TextInput, Select, Radio, Group, Container, Flex, B import { Button } from '@ui/button'; import { useApp } from '@hooks/useApp'; -import { colors, COMPANY_SIZES, HOW_HEARD_ABOUT_US, ROLES } from '@config'; +import { colors, COMPANY_SIZES, HOW_HEARD_ABOUT_US, PLACEHOLDERS, ROLES } from '@config'; import { useOnboardUserProjectForm } from '@hooks/useOnboardUserProjectForm'; export function OnboardUserForm() { @@ -29,11 +29,11 @@ export function OnboardUserForm() { <Group position="left"> <span style={{ fontSize: '30px' }}>👋</span> - <span>Welcome, {profile?.firstName}</span> + <span>Welcome {profile?.firstName}</span> </Group> - We just need to confirm a couple of details, it‘s only take a minute. + Let's customize your experience. Your answers will decrease the time to get started.
@@ -49,9 +49,9 @@ export function OnboardUserForm() { }} render={({ field }) => ( )} /> @@ -116,7 +116,7 @@ export function OnboardUserForm() { label="How did you hear about us first?" required data={about} - placeholder="Google Search, Colleague" + placeholder={PLACEHOLDERS.source} searchable creatable value={field.value} diff --git a/apps/web/components/signin/index.tsx b/apps/web/components/signin/index.tsx index 2f3505d69..ad4123043 100644 --- a/apps/web/components/signin/index.tsx +++ b/apps/web/components/signin/index.tsx @@ -5,7 +5,7 @@ import { Title, Text, Stack, Divider, Flex, Box, Alert, TextInput as Input } fro import { Button } from '@ui/button'; import { useSignin } from '@hooks/auth/useSignin'; import { PasswordInput } from '@ui/password-input'; -import { CONSTANTS, ROUTES, colors } from '@config'; +import { CONSTANTS, PLACEHOLDERS, ROUTES, colors } from '@config'; import DarkLogo from '@assets/images/logo-dark.png'; import { GithubIcon } from '@assets/icons/Github.icon'; @@ -59,8 +59,21 @@ export const Signin = ({ API_URL, error }: SigninProps) => { {errorMessage.message} ) : null} - - + + Forgot password? diff --git a/apps/web/config/constants.config.ts b/apps/web/config/constants.config.ts index bba3fee4d..96e4f6dbc 100644 --- a/apps/web/config/constants.config.ts +++ b/apps/web/config/constants.config.ts @@ -279,3 +279,14 @@ export const HOW_HEARD_ABOUT_US = [ { value: 'Colleague', label: 'Colleague' }, { value: 'Linkdin', label: 'Linkdin' }, ]; + +export const PLACEHOLDERS = { + email: 'johndoe@company.org', + password: '********', + project: 'Acme Inc', + fullName: 'John Doe', + companySize: 'Only me', + role: 'Engineer', + source: 'Google Search, Recommendation...', + about: 'Google Search', +}; diff --git a/apps/web/pages/auth/reset/[token].tsx b/apps/web/pages/auth/reset/[token].tsx index f7af2d4e4..78310ac28 100644 --- a/apps/web/pages/auth/reset/[token].tsx +++ b/apps/web/pages/auth/reset/[token].tsx @@ -2,12 +2,12 @@ import Image from 'next/image'; import Link from 'next/link'; import { Title, Stack, Flex, Text } from '@mantine/core'; -import { ROUTES, colors } from '@config'; import { Button } from '@ui/button'; import { PasswordInput } from '@ui/password-input'; import DarkLogo from '@assets/images/logo-dark.png'; import { OnboardLayout } from '@layouts/OnboardLayout'; import { useResetPassword } from '@hooks/auth/useResetPassword'; +import { PLACEHOLDERS, ROUTES, colors } from '@config'; export default function ResetPasswordPage({}) { const { register, resetPassword, error, isError } = useResetPassword(); @@ -34,8 +34,8 @@ export default function ResetPasswordPage({}) { required size="md" label="New Password" - placeholder="New Password here" register={register('password')} + placeholder={PLACEHOLDERS.password} />