Skip to content

Commit 2ec5806

Browse files
committed
fix: format
1 parent 532218e commit 2ec5806

File tree

5 files changed

+22
-8
lines changed

5 files changed

+22
-8
lines changed

site/src/modules/workspaces/ClassicParameterFlowDeprecationWarning/ClassicParameterFlowDeprecationWarning.test.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@ describe("ClassicParameterFlowDeprecationWarning", () => {
1515
};
1616

1717
it("renders warning when enabled and user has template update permissions", () => {
18-
render(<ClassicParameterFlowDeprecationWarning {...defaultProps} isEnabled={true} />);
18+
render(
19+
<ClassicParameterFlowDeprecationWarning
20+
{...defaultProps}
21+
isEnabled={true}
22+
/>,
23+
);
1924

2025
expect(screen.getByText("deprecated")).toBeInTheDocument();
2126
expect(screen.getByText("Go to Template Settings")).toBeInTheDocument();
@@ -26,7 +31,7 @@ describe("ClassicParameterFlowDeprecationWarning", () => {
2631
<ClassicParameterFlowDeprecationWarning
2732
{...defaultProps}
2833
isEnabled={false}
29-
/>
34+
/>,
3035
);
3136

3237
expect(container.firstChild).toBeNull();

site/src/modules/workspaces/ClassicParameterFlowDeprecationWarning/ClassicParameterFlowDeprecationWarning.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export const ClassicParameterFlowDeprecationWarning: FC<
2626
<Alert severity="warning" className="mb-2">
2727
<div>
2828
This template is using the classic parameter flow, which will be{" "}
29-
<strong>deprecated</strong> in a future release.
30-
Please migrate to dynamic improved functionality.
29+
<strong>deprecated</strong> in a future release. Please migrate to
30+
dynamic improved functionality.
3131
</div>
3232
<Link className="text-xs" href={templateSettingsLink}>
3333
Go to Template Settings

site/src/pages/CreateWorkspacePage/CreateWorkspacePage.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ const CreateWorkspacePage: FC = () => {
110110
templatePermissionsQuery.isLoading ||
111111
richParametersQuery.isLoading;
112112
const loadFormDataError =
113-
templateQuery.error ?? permissionsQuery.error ?? templatePermissionsQuery.error ?? richParametersQuery.error;
113+
templateQuery.error ??
114+
permissionsQuery.error ??
115+
templatePermissionsQuery.error ??
116+
richParametersQuery.error;
114117

115118
const title = autoCreateWorkspaceMutation.isPending
116119
? "Creating workspace..."
@@ -226,7 +229,9 @@ const CreateWorkspacePage: FC = () => {
226229
startPollingExternalAuth={startPollingExternalAuth}
227230
hasAllRequiredExternalAuth={hasAllRequiredExternalAuth}
228231
permissions={permissionsQuery.data as CreateWorkspacePermissions}
229-
templatePermissions={templatePermissionsQuery.data as { canUpdateTemplate: boolean }}
232+
templatePermissions={
233+
templatePermissionsQuery.data as { canUpdateTemplate: boolean }
234+
}
230235
parameters={realizedParameters as TemplateVersionParameter[]}
231236
presets={templateVersionPresetsQuery.data ?? []}
232237
creatingWorkspace={createWorkspaceMutation.isPending}

site/src/pages/WorkspaceSettingsPage/WorkspaceParametersPage/WorkspaceParametersPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ const WorkspaceParametersPage: FC = () => {
6666
enabled: workspace !== undefined,
6767
});
6868

69-
const templatePermissions = templatePermissionsQuery.data as { canUpdateTemplate: boolean } | undefined;
69+
const templatePermissions = templatePermissionsQuery.data as
70+
| { canUpdateTemplate: boolean }
71+
| undefined;
7072

7173
return (
7274
<>

site/src/pages/WorkspaceSettingsPage/WorkspaceParametersPage/WorkspaceParametersPageExperimental.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,9 @@ const WorkspaceParametersPageExperimental: FC = () => {
261261
message="This workspace has no parameters"
262262
cta={
263263
<Link
264-
href={docs("/admin/templates/extending-templates/dynamic-parameters")}
264+
href={docs(
265+
"/admin/templates/extending-templates/dynamic-parameters",
266+
)}
265267
>
266268
Learn more about parameters
267269
</Link>

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