From b15f4095e46b7eaf27bfb6f677df3424635fd927 Mon Sep 17 00:00:00 2001 From: NIL2000 Date: Tue, 17 Sep 2024 20:35:54 +0530 Subject: [PATCH] Solved linting error --- apps/platform/src/components/ui/combobox.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/apps/platform/src/components/ui/combobox.tsx b/apps/platform/src/components/ui/combobox.tsx index 463c84ba..1e625cc2 100644 --- a/apps/platform/src/components/ui/combobox.tsx +++ b/apps/platform/src/components/ui/combobox.tsx @@ -22,9 +22,9 @@ import { apiClient } from '@/lib/api-client' import type { Workspace } from '@/types' import { zWorkspace } from '@/types' import { - getCurrentWorkspace, - setCurrentWorkspace, - setWorkspace + GetCurrentWorkspace, + SetCurrentWorkspace, + SetWorkspace } from '@/lib/workspace-storage' import { Input } from './input' import { Label } from './label' @@ -74,7 +74,7 @@ export function Combobox(): React.JSX.Element { const response = await apiClient.post('/workspace', { name }) - setCurrentWorkspace(response) + SetCurrentWorkspace(response) setOpen(false) } catch (error) { // eslint-disable-next-line no-console -- we need to log the error @@ -87,7 +87,7 @@ export function Combobox(): React.JSX.Element { .then((data) => { if (data) { setAllWorkspace(data) - setWorkspace(data) + SetWorkspace(data) } }) .catch((error) => { @@ -112,7 +112,7 @@ export function Combobox(): React.JSX.Element {
- {getCurrentWorkspace()?.name ?? 'No workspace'} + {GetCurrentWorkspace()?.name ?? 'No workspace'}
100+ projects
@@ -132,7 +132,7 @@ export function Combobox(): React.JSX.Element { { - setCurrentWorkspace(workspace) + SetCurrentWorkspace(workspace) router.refresh() setOpen(false) }} @@ -141,7 +141,7 @@ export function Combobox(): React.JSX.Element {