Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 57952ab

Browse files
committed
chore: updates to create organization page
1 parent 017a954 commit 57952ab

File tree

1 file changed

+18
-19
lines changed

1 file changed

+18
-19
lines changed

site/src/pages/ManagementSettingsPage/CreateOrganizationPageView.tsx

+18-19
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ import { ErrorAlert } from "components/Alert/ErrorAlert";
55
import { Badges, PremiumBadge } from "components/Badges/Badges";
66
import { ChooseOne, Cond } from "components/Conditionals/ChooseOne";
77
import {
8+
Form,
89
FormFields,
910
FormFooter,
1011
FormSection,
11-
VerticalForm,
1212
} from "components/Form/Form";
1313
import { IconField } from "components/IconField/IconField";
1414
import { Paywall } from "components/Paywall/Paywall";
1515
import { PopoverPaywall } from "components/Paywall/PopoverPaywall";
16-
import { SettingsHeader } from "components/SettingsHeader/SettingsHeader";
17-
import { Stack } from "components/Stack/Stack";
1816
import {
1917
Popover,
2018
PopoverContent,
@@ -67,8 +65,8 @@ export const CreateOrganizationPageView: FC<
6765
const getFieldHelpers = getFormHelpers(form, error);
6866

6967
return (
70-
<div className="flex flex-row gap-72 font-medium">
71-
<div>
68+
<div className="flex flex-row font-medium">
69+
<div className="absolute top-40 left-12">
7270
<Link
7371
to="/organizations"
7472
className="flex flex-row items-center gap-2 no-underline text-content-secondary hover:text-content-primary"
@@ -77,13 +75,8 @@ export const CreateOrganizationPageView: FC<
7775
Go Back
7876
</Link>
7977
</div>
80-
<Stack>
81-
<div>
82-
<SettingsHeader
83-
title="New Organization"
84-
description="Organize your deployment into multiple platform teams with unique provisioners, templates, groups, and members."
85-
/>
86-
78+
<div className="flex flex-col gap-4 max-w-2xl mx-auto">
79+
<div className="flex flex-col items-center">
8780
{Boolean(error) && !isApiValidationError(error) && (
8881
<div css={{ marginBottom: 32 }}>
8982
<ErrorAlert error={error} />
@@ -109,6 +102,14 @@ export const CreateOrganizationPageView: FC<
109102
</PopoverContent>
110103
</Popover>
111104
</Badges>
105+
106+
<header className="flex flex-col gap-2 items-center">
107+
<h1 className="text-3xl font-bold m-0">New Organization</h1>
108+
<p className="max-w-md text-sm text-content-secondary text-center">
109+
Organize your deployment into multiple platform teams with unique
110+
provisioners, templates, groups, and members.
111+
</p>
112+
</header>
112113
</div>
113114

114115
<ChooseOne>
@@ -120,14 +121,12 @@ export const CreateOrganizationPageView: FC<
120121
/>
121122
</Cond>
122123
<Cond>
123-
<VerticalForm
124+
<Form
125+
direction="vertical"
124126
onSubmit={form.handleSubmit}
125127
aria-label="Organization settings form"
126128
>
127-
<FormSection
128-
title="General info"
129-
description="The name and description of the organization."
130-
>
129+
<FormSection title="" description="">
131130
<fieldset
132131
disabled={form.isSubmitting}
133132
css={{
@@ -167,10 +166,10 @@ export const CreateOrganizationPageView: FC<
167166
</fieldset>
168167
</FormSection>
169168
<FormFooter isLoading={form.isSubmitting} />
170-
</VerticalForm>
169+
</Form>
171170
</Cond>
172171
</ChooseOne>
173-
</Stack>
172+
</div>
174173
</div>
175174
);
176175
};

0 commit comments

Comments
 (0)