Skip to content

Commit 90e78db

Browse files
authored
Add docs popover button to instance create (#2237)
* Add DocsPopover to the Instance Create form
1 parent b603d2d commit 90e78db

File tree

3 files changed

+300
-273
lines changed

3 files changed

+300
-273
lines changed

app/components/form/FullPageForm.tsx

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@
55
*
66
* Copyright Oxide Computer Company
77
*/
8-
import { cloneElement, useEffect, type ReactElement, type ReactNode } from 'react'
8+
import { cloneElement, useEffect, type ReactNode } from 'react'
99
import type { FieldValues, UseFormReturn } from 'react-hook-form'
1010
import { useBlocker, type Blocker } from 'react-router-dom'
1111

1212
import type { ApiError } from '@oxide/api'
1313

1414
import { Modal } from '~/ui/lib/Modal'
15-
import { PageHeader, PageTitle } from '~/ui/lib/PageHeader'
1615
import { flattenChildren, pluckFirstOfType } from '~/util/children'
1716
import { classed } from '~/util/classed'
1817

@@ -21,8 +20,6 @@ import { PageActions } from '../PageActions'
2120

2221
interface FullPageFormProps<TFieldValues extends FieldValues> {
2322
id: string
24-
title: string
25-
icon: ReactElement
2623
/** Must provide a reason for submit being disabled */
2724
submitDisabled?: string
2825
error?: Error
@@ -50,11 +47,9 @@ const PageActionsContainer = classed.div`flex h-20 items-center gutter`
5047

5148
export function FullPageForm<TFieldValues extends FieldValues>({
5249
id,
53-
title,
5450
children,
5551
submitDisabled,
5652
error,
57-
icon,
5853
loading,
5954
form,
6055
onSubmit,
@@ -85,9 +80,6 @@ export function FullPageForm<TFieldValues extends FieldValues>({
8580

8681
return (
8782
<>
88-
<PageHeader>
89-
<PageTitle icon={icon}>{title}</PageTitle>
90-
</PageHeader>
9183
<form
9284
className="ox-form pb-20"
9385
id={id}

0 commit comments

Comments
 (0)