Skip to content

Commit

Permalink
change retrieve locations field
Browse files Browse the repository at this point in the history
  • Loading branch information
axgu committed Apr 20, 2024
1 parent ac00a99 commit c9025b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/manage/items/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Color,
ItemInteraction,
Location,
RetrieveLocation,
Value
} from '@prisma/client';
import MyListbox from 'components/Form/Listbox';
Expand Down Expand Up @@ -208,8 +209,8 @@ const CreateItem: NextPageWithLayout = () => {
</span>
</label>
<MyListbox
values={Object.values(Location)}
displayValue={(prop) => Locations[prop]}
values={Object.values(RetrieveLocation)}
displayValue={(prop) => RetrieveLocation[prop]}
keyValue={(prop) => prop}
name="retrieveLocation"
control={methods.control}
Expand Down

0 comments on commit c9025b2

Please sign in to comment.