Skip to content

Commit

Permalink
filename change and use in edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
charliepark committed Aug 21, 2024
1 parent 17a6820 commit 64a5054
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/forms/subnet-create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { useNavigate } from 'react-router-dom'
import { useApiMutation, useApiQueryClient, type VpcSubnetCreate } from '@oxide/api'

import { ComboboxField } from '~/components/form/fields/ComboboxField'
import { useCustomRouterItems } from '~/components/form/fields/comboboxHooks'
import { DescriptionField } from '~/components/form/fields/DescriptionField'
import { NameField } from '~/components/form/fields/NameField'
import { TextField } from '~/components/form/fields/TextField'
import { useCustomRouterItems } from '~/components/form/fields/useItemsList'
import { SideModalForm } from '~/components/form/SideModalForm'
import { useForm, useVpcSelector } from '~/hooks'
import { FormDivider } from '~/ui/lib/Divider'
Expand Down
7 changes: 4 additions & 3 deletions app/forms/subnet-edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import {
} from '@oxide/api'

import { ComboboxField } from '~/components/form/fields/ComboboxField'
import { useCustomRouterItems } from '~/components/form/fields/comboboxHooks'
import { DescriptionField } from '~/components/form/fields/DescriptionField'
import { NameField } from '~/components/form/fields/NameField'
import { useCustomRouterItems } from '~/components/form/fields/useItemsList'
import { SideModalForm } from '~/components/form/SideModalForm'
import { getVpcSubnetSelector, useForm, useVpcSubnetSelector } from '~/hooks'
import { FormDivider } from '~/ui/lib/Divider'
Expand Down Expand Up @@ -60,7 +60,7 @@ export function EditSubnetForm() {
])

const form = useForm({ defaultValues })
const customRouterItems = useCustomRouterItems()
const { isLoading, items } = useCustomRouterItems()

return (
<SideModalForm
Expand All @@ -85,7 +85,8 @@ export function EditSubnetForm() {
label="Custom router"
name="customRouter"
placeholder="Select a custom router"
items={customRouterItems}
isLoading={isLoading}
items={items}
control={form.control}
/>
</SideModalForm>
Expand Down

0 comments on commit 64a5054

Please sign in to comment.