Skip to content

Commit

Permalink
index-browser alias
Browse files Browse the repository at this point in the history
  • Loading branch information
jho44 committed Feb 28, 2024
1 parent 0f3560f commit 11074c3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/Calendar/ScheduleTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { getRowColor, isAvailableOnRow } from '$lib/logics/Calendar/ScheduleTable/logic';
import { requestToMarkOneRow } from '$lib/logics/Calendar/_shared/utils';
import type { Row, Unavailable } from '$lib/logics/_shared/types';
import { AvailabilityStatus } from '@prisma/client';
import { createEventDispatcher, tick } from 'svelte';
import Editor from './Editor.svelte';
Expand All @@ -12,6 +11,7 @@
export let dbRows: Row[];
export let displayedRows: Row[];
export let timeZone: string;
export let AvailabilityStatus: any;
let openedRows = new Set<number>(); // row inds which have open editors
let rowIndsWithTimeErrs = new Set<number>();
Expand Down
1 change: 1 addition & 0 deletions src/routes/calendar/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<NavBar pageName="Calendar" />
<div style="text-align: center; margin: 2rem 0;">
<ScheduleTable
{AvailabilityStatus}
{dbRows}
{displayedRows}
timeZone={user.timeZone}
Expand Down
5 changes: 5 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@ export default defineConfig({
plugins: [sveltekit()],
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
},
resolve: {
alias: {
'.prisma/client/index-browser': './node_modules/.prisma/client/index-browser.js'
}
}
});

0 comments on commit 11074c3

Please sign in to comment.