Skip to content

Commit 506d596

Browse files
committed
Formatting fixes
1 parent 09a9f84 commit 506d596

File tree

2 files changed

+68
-57
lines changed

2 files changed

+68
-57
lines changed

site/src/pages/OrganizationSettingsPage/OrganizationProvisionersPage/OrganizationProvisionersPageView.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const meta: Meta<typeof OrganizationProvisionersPageView> = {
2626
{
2727
...MockUserProvisioner,
2828
status: "offline",
29-
}
29+
},
3030
],
3131
filter: {
3232
ids: "",
@@ -85,6 +85,6 @@ export const FilterByOffline: Story = {
8585
filter: {
8686
ids: "",
8787
offline: false,
88-
}
89-
}
90-
}
88+
},
89+
},
90+
};

site/src/pages/OrganizationSettingsPage/OrganizationProvisionersPage/OrganizationProvisionersPageView.tsx

Lines changed: 64 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ export const OrganizationProvisionersPageView: FC<
104104
documentationLink={docs("/")}
105105
/>
106106
) : (
107-
<><div className="flex items-center gap-2 mb-6">
107+
<>
108+
<div className="flex items-center gap-2 mb-6">
108109
<Checkbox
109110
id="offline-filter"
110111
checked={filter.offline}
@@ -113,70 +114,80 @@ export const OrganizationProvisionersPageView: FC<
113114
...filter,
114115
offline: checked === true,
115116
});
116-
} } />
117+
}}
118+
/>
117119
<label
118120
htmlFor="offline-filter"
119121
className="text-sm font-medium leading-none"
120122
>
121123
Include offline provisioners
122124
</label>
123-
</div><Table>
124-
<TableHeader>
125-
<TableRow>
126-
<TableHead>Name</TableHead>
127-
<TableHead>Key</TableHead>
128-
<TableHead>Version</TableHead>
129-
<TableHead>Status</TableHead>
130-
<TableHead>Tags</TableHead>
131-
<TableHead>
132-
<LastConnectionHead />
133-
</TableHead>
134-
</TableRow>
135-
</TableHeader>
136-
<TableBody>
137-
{provisioners ? (
138-
provisioners.length > 0 ? (
139-
provisioners.map((provisioner) => (
140-
<ProvisionerRow
141-
provisioner={provisioner}
142-
key={provisioner.id}
143-
buildVersion={buildVersion}
144-
defaultIsOpen={filter.ids.includes(provisioner.id)} />
145-
))
146-
) : (
147-
<TableRow>
148-
<TableCell colSpan={999}>
149-
<EmptyState
150-
message="No provisioners found"
151-
description="A provisioner is required before you can create templates and workspaces. You can connect your first provisioner by following our documentation."
152-
cta={<Button size="sm" asChild>
125+
</div>
126+
<Table>
127+
<TableHeader>
128+
<TableRow>
129+
<TableHead>Name</TableHead>
130+
<TableHead>Key</TableHead>
131+
<TableHead>Version</TableHead>
132+
<TableHead>Status</TableHead>
133+
<TableHead>Tags</TableHead>
134+
<TableHead>
135+
<LastConnectionHead />
136+
</TableHead>
137+
</TableRow>
138+
</TableHeader>
139+
<TableBody>
140+
{provisioners ? (
141+
provisioners.length > 0 ? (
142+
provisioners.map((provisioner) => (
143+
<ProvisionerRow
144+
provisioner={provisioner}
145+
key={provisioner.id}
146+
buildVersion={buildVersion}
147+
defaultIsOpen={filter.ids.includes(provisioner.id)}
148+
/>
149+
))
150+
) : (
151+
<TableRow>
152+
<TableCell colSpan={999}>
153+
<EmptyState
154+
message="No provisioners found"
155+
description="A provisioner is required before you can create templates and workspaces. You can connect your first provisioner by following our documentation."
156+
cta={
157+
<Button size="sm" asChild>
153158
<a href={docs("/admin/provisioners")}>
154159
Create a provisioner
155160
<SquareArrowOutUpRightIcon />
156161
</a>
157-
</Button>} />
158-
</TableCell>
159-
</TableRow>
160-
)
161-
) : error ? (
162-
<TableRow>
163-
<TableCell colSpan={999}>
164-
<EmptyState
165-
message="Error loading the provisioner jobs"
166-
cta={<Button onClick={onRetry} size="sm">
167-
Retry
168-
</Button>} />
162+
</Button>
163+
}
164+
/>
169165
</TableCell>
170166
</TableRow>
171-
) : (
172-
<TableRow>
173-
<TableCell colSpan={999}>
174-
<Loader />
175-
</TableCell>
176-
</TableRow>
177-
)}
178-
</TableBody>
179-
</Table></>
167+
)
168+
) : error ? (
169+
<TableRow>
170+
<TableCell colSpan={999}>
171+
<EmptyState
172+
message="Error loading the provisioner jobs"
173+
cta={
174+
<Button onClick={onRetry} size="sm">
175+
Retry
176+
</Button>
177+
}
178+
/>
179+
</TableCell>
180+
</TableRow>
181+
) : (
182+
<TableRow>
183+
<TableCell colSpan={999}>
184+
<Loader />
185+
</TableCell>
186+
</TableRow>
187+
)}
188+
</TableBody>
189+
</Table>
190+
</>
180191
)}
181192
</section>
182193
);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy