Skip to content

Commit 2f388da

Browse files
committed
add edit headline on profile
1 parent 31832cd commit 2f388da

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

‎apps/codebility/app/home/settings/profile/_components/PersonalInfo.tsx‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type FormValues = {
3232
address: string | undefined;
3333
display_position: string | undefined;
3434
years_of_experience: number;
35+
headline: string | undefined;
3536
};
3637

3738
const PersonalInfo = ({ data }: PersonalInfoProps) => {
@@ -53,6 +54,7 @@ const PersonalInfo = ({ data }: PersonalInfoProps) => {
5354
address: data.address || undefined,
5455
display_position: data.display_position || undefined,
5556
years_of_experience: data.years_of_experience || 0,
57+
headline: data.headline || undefined,
5658
},
5759
});
5860

@@ -199,6 +201,17 @@ const PersonalInfo = ({ data }: PersonalInfoProps) => {
199201
placeholder="Years of experience"
200202
/>
201203

204+
<Input
205+
id="headline"
206+
{...register("headline")}
207+
label="Headline"
208+
disabled={!isEditMode}
209+
parentClassName="flex w-full flex-col justify-between gap-2"
210+
variant={isEditMode ? "lightgray" : "darkgray"}
211+
className="rounded"
212+
placeholder="e.g. Senior Frontend Developer specializing in React"
213+
/>
214+
202215
{isEditMode && (
203216
<div className="mt-5 flex justify-end gap-2">
204217
<Button

0 commit comments

Comments
 (0)