Skip to content

Commit

Permalink
WIP instance form work
Browse files Browse the repository at this point in the history
  • Loading branch information
zephraph committed Apr 1, 2022
1 parent 0e61aac commit 34f95f3
Show file tree
Hide file tree
Showing 17 changed files with 534 additions and 144 deletions.
7 changes: 7 additions & 0 deletions app/forms/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import type { EditSubnetForm } from './subnet-edit'
import type { CreateOrgForm } from './org-create'
import type { CreateDiskForm } from './disk-create'
import type { CreateProjectForm } from './project-create'
import type CreateInstanceForm from './instance-create'
import type { ExtractFormValues } from '@oxide/form'

/**
* A map of all existing forms. When a new form is created in the forms directory, a
Expand All @@ -12,7 +14,12 @@ import type { CreateProjectForm } from './project-create'
export interface FormTypes {
'org-create': typeof CreateOrgForm
'project-create': typeof CreateProjectForm
'instance-create': typeof CreateInstanceForm
'disk-create': typeof CreateDiskForm
'subnet-create': typeof CreateSubnetForm
'subnet-edit': typeof EditSubnetForm
}

export type FormValues<K extends keyof FormTypes> = ExtractFormValues<
FormTypes[K]
>
Loading

0 comments on commit 34f95f3

Please sign in to comment.