Skip to content

Commit

Permalink
feat: add typography to add people page
Browse files Browse the repository at this point in the history
  • Loading branch information
r1skz3ro committed Jul 4, 2024
1 parent 5996a62 commit ed22ef0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { Button } from '@app/components/common/Button';
import { FormProvider } from '@app/components/common/FormProvider';
import { Input } from '@app/components/common/Input';
import { Typography } from '@app/components/common/Typography';
import { routes } from '@app/constants';
import { usePeopleStore } from '@app/store/peopleStore';
import { useEffect, useState } from 'react';
Expand Down Expand Up @@ -43,7 +44,9 @@ export default function PersonalDetails() {

return (
<FormProvider<PersonalDetailsForm> form={form}>
<div className="mb-6 text-2xl font-semibold leading-7">Personal details</div>
<Typography variant="head-m/semibold" className="mb-6">
Personal details
</Typography>
<div className="mb-6 grid w-full grid-cols-2 gap-x-8 gap-y-6 rounded-[20px] border border-navy-200 bg-white p-8">
<Input
name={PersonalDetailsFormNames.firstName}
Expand Down
8 changes: 5 additions & 3 deletions frontend/src/components/modules/SideStepper/SideStepper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { CheckMarkIcon } from '@app/static/icons/CheckMarkIcon';
import { generateClassNames } from '@app/utils';
import { SideStepperProps, StepStates } from './SideStepper.interface';
import { Fragment } from 'react';
import { Typography } from '@app/components/common/Typography';

const Completed = () => {
return (
Expand Down Expand Up @@ -37,11 +38,12 @@ export const SideStepper = <T extends string>({ steps }: SideStepperProps<T>) =>
<Fragment key={label}>
<div className="flex items-center gap-x-3">
{stepsMap[state]}
<div
className={generateClassNames('font-semibold leading-6', current ? 'text-navy-900' : 'text-navy-600')}
<Typography
variant="body-m/semibold"
className={generateClassNames(current ? 'text-navy-900' : 'text-navy-600')}
>
{label}
</div>
</Typography>
</div>
{!last && (
<div className="flex w-7 justify-center py-2">
Expand Down

0 comments on commit ed22ef0

Please sign in to comment.