Skip to content

Commit

Permalink
Add name, address, and area attributes to CreateZonesForm
Browse files Browse the repository at this point in the history
  • Loading branch information
D3nnis38 committed Feb 2, 2024
1 parent 17916b3 commit 95456a2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export const CreateZonesForm = () => {
type="text"
value={zone.properties.name}
onChange={setFieldValue(index, 'name')}
name="name"
placeholder="Namn på zon"
error={errors[index]?.name}
/>
Expand All @@ -87,6 +88,7 @@ export const CreateZonesForm = () => {
value={zone.properties.address}
onChange={setFieldValue(index, 'address')}
placeholder="Adress till zon"
name="address"
error={errors[index]?.address}
disabled={!ready}
/>
Expand All @@ -98,10 +100,11 @@ export const CreateZonesForm = () => {
type="text"
value={zone.properties.area}
onChange={setFieldValue(index, 'area')}
name="area"
placeholder="Område"
error={errors[index]?.area}
/>
<Select label="Typ" value={zone.properties.type} onChange={setFieldValue(index, 'type')}>
<Select label="Typ" value={zone.properties.type} name="type" onChange={setFieldValue(index, 'type')}>
<option value="delivery">Leverans zon</option>
<option value="distribution">Distributions zon</option>
</Select>
Expand Down

0 comments on commit 95456a2

Please sign in to comment.