From b1ab93ffdc75064aeca3a28fbf8edde96e3278bf Mon Sep 17 00:00:00 2001 From: Presley Pizzo Date: Tue, 18 Oct 2022 15:36:58 +0000 Subject: [PATCH] Format --- site/src/api/api.ts | 4 +- .../WorkspacesPage/WorkspacesPageView.tsx | 38 +-- .../workspaces/workspacesXService.ts | 232 +++++++++--------- 3 files changed, 138 insertions(+), 136 deletions(-) diff --git a/site/src/api/api.ts b/site/src/api/api.ts index cd0de7980e..fef3d2a7ef 100644 --- a/site/src/api/api.ts +++ b/site/src/api/api.ts @@ -292,7 +292,9 @@ export const getWorkspaces = async ( searchParams.set("q", options.q) } - const response = await axios.get(`/api/v2/workspaces?${searchParams.toString()}`) + const response = await axios.get( + `/api/v2/workspaces?${searchParams.toString()}`, + ) return response.data } diff --git a/site/src/pages/WorkspacesPage/WorkspacesPageView.tsx b/site/src/pages/WorkspacesPage/WorkspacesPageView.tsx index 83d5bb0be7..5f519faff6 100644 --- a/site/src/pages/WorkspacesPage/WorkspacesPageView.tsx +++ b/site/src/pages/WorkspacesPage/WorkspacesPageView.tsx @@ -86,26 +86,26 @@ export const WorkspacesPageView: FC< - - 0 - ? "warning" - : "error" - } + + 0 + ? "warning" + : "error" + } + /> + + + + + + + - - - - - - - !context.workspaceRefs, @@ -407,7 +407,7 @@ export const workspacesMachine = page: (_, event) => event.page, }), resetPage: assign({ - page: (_) => 1 + page: (_) => 1, }), assignCount: assign({ count: (_, event) => event.data.count,