Skip to content

Commit

Permalink
Fix prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
kplatis committed Apr 10, 2024
1 parent 21bbca3 commit 13f57f2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { createMockVirtualLab } from '__tests__/__utils__/VirtualLab';
import { changeInputValue, getButton } from '__tests__/__utils__/utils';
import { VirtualLab } from '@/types/virtual-lab/lab';

jest.mock('@/services/virtual-lab/virtual-lab-service');

jest.mock('next/navigation', () => ({
__esModule: true,
useParams: jest.fn(),
Expand Down
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,5 @@ export const licensesESView = {
export const autoSaveDebounceInterval = 10000;

export const virtualLabApi = {
url: env.NEXT_PUBLIC_VIRTUAL_LAB_API_URL
}
url: env.NEXT_PUBLIC_VIRTUAL_LAB_API_URL,
};
4 changes: 0 additions & 4 deletions src/services/virtual-lab/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +0,0 @@




10 changes: 4 additions & 6 deletions src/state/virtual-lab/lab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ export const virtualLabProjectsAtomFamily = atomFamily((virtualLabId: string) =>
})
);

export const virtualLabOfUserAtom = atom<Promise<VirtualLabAPIListData<VirtualLab>>>(
async () => {
const response = await getVirtualLabsOfUser();
return response.data;
}
);
export const virtualLabOfUserAtom = atom<Promise<VirtualLabAPIListData<VirtualLab>>>(async () => {
const response = await getVirtualLabsOfUser();
return response.data;
});

export const currentVirtualLabIdAtom = atom<string | null>(null);

0 comments on commit 13f57f2

Please sign in to comment.