Skip to content

Commit

Permalink
add input field for website
Browse files Browse the repository at this point in the history
  • Loading branch information
ducaale committed Jan 21, 2024
1 parent 2c558de commit ff099de
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/generator/Form/sections/ProfileSection.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// import { useFieldArray } from 'react-hook-form'
import { FormSection } from './FormSection'
import { LabeledInput } from '../../../core/LabeledInput'

export function ProfileSection() {
// const { fields, append } = useFieldArray({ name: 'basics.links' })

return (
<FormSection title="Your personal info">
<LabeledInput
Expand All @@ -27,10 +24,11 @@ export function ProfileSection() {
label="Location"
placeholder="Seattle, WA"
/>
{/* {fields.map((field, index) => (
<input key={field.id} name={`basics.links.${index}`} />
))}
<button onClick={() => append('')}>Add</button> */}
<LabeledInput
name="basics.website"
label="Website"
placeholder="mycoolportifolio.com/myname"
/>
</FormSection>
)
}

0 comments on commit ff099de

Please sign in to comment.