diff --git a/frontend/src/hooks.server.ts b/frontend/src/hooks.server.ts index adda5c6..cde3603 100644 --- a/frontend/src/hooks.server.ts +++ b/frontend/src/hooks.server.ts @@ -12,7 +12,7 @@ export const handleFetch: HandleFetch = async ({ request, fetch, event }) => { const url = new URL(request.url); - url.protocol = "http:"; + url.protocol = 'http:'; url.host = process.env.PORTFOLIO_API_HOST ?? '127.0.0.1:8000'; diff --git a/frontend/src/lib/components/admin/table/Table.svelte b/frontend/src/lib/components/admin/table/Table.svelte index 1916259..f4d65ca 100644 --- a/frontend/src/lib/components/admin/table/Table.svelte +++ b/frontend/src/lib/components/admin/table/Table.svelte @@ -22,7 +22,7 @@ {#each candidates as candidate} - \ No newline at end of file + class="h-10 w-10" + fill="none" + stroke="currentColor" + viewBox="0 0 24 24" + xmlns="http://www.w3.org/2000/svg" + > diff --git a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte index 4696f58..53eaa15 100644 --- a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte +++ b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte @@ -122,15 +122,15 @@ }); type FormErrorType = { - [K in keyof typeof formInitialValues]: typeof formInitialValues[K] extends Record< + [K in keyof typeof formInitialValues]: (typeof formInitialValues)[K] extends Record< string, unknown > ? { - [K2 in keyof typeof formInitialValues[K]]: string; + [K2 in keyof (typeof formInitialValues)[K]]: string; } - : typeof formInitialValues[K] extends Array> - ? Array<{ [K3 in keyof typeof formInitialValues[K][number]]: string }> + : (typeof formInitialValues)[K] extends Array> + ? Array<{ [K3 in keyof (typeof formInitialValues)[K][number]]: string }> : string; }; @@ -206,8 +206,8 @@ '--toastColor': 'mintcream', '--toastBackground': '#b91c1c', '--toastBarBackground': '#7f1d1d' - } - }) + } + }); throw new Error('Rodné číslo neodpovídá datumu narození'); } } @@ -340,7 +340,7 @@ - +