Skip to content

Commit 3824037

Browse files
committed
fix: format
1 parent 862c8f6 commit 3824037

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
@@ -107,7 +107,10 @@ const CreateWorkspacePage: FC = () => {
107107
templatePermissionsQuery.isLoading ||
108108
richParametersQuery.isLoading;
109109
const loadFormDataError =
110-
templateQuery.error ?? permissionsQuery.error ?? templatePermissionsQuery.error ?? richParametersQuery.error;
110+
templateQuery.error ??
111+
permissionsQuery.error ??
112+
templatePermissionsQuery.error ??
113+
richParametersQuery.error;
111114

112115
const title = autoCreateWorkspaceMutation.isPending
113116
? "Creating workspace..."
@@ -223,7 +226,9 @@ const CreateWorkspacePage: FC = () => {
223226
startPollingExternalAuth={startPollingExternalAuth}
224227
hasAllRequiredExternalAuth={hasAllRequiredExternalAuth}
225228
permissions={permissionsQuery.data as CreateWorkspacePermissions}
226-
templatePermissions={templatePermissionsQuery.data as { canUpdateTemplate: boolean }}
229+
templatePermissions={
230+
templatePermissionsQuery.data as { canUpdateTemplate: boolean }
231+
}
227232
parameters={realizedParameters as TemplateVersionParameter[]}
228233
presets={templateVersionPresetsQuery.data ?? []}
229234
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