Skip to content

Commit 951a7c7

Browse files
committed
Remove Omit
1 parent 54cf86a commit 951a7c7

File tree

7 files changed

+9
-38
lines changed

7 files changed

+9
-38
lines changed

src/frontend/src/lib/components/UI/animation/FlyWrapper.svelte

-23
This file was deleted.

src/frontend/src/routes/(new-styling)/+layout.svelte

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// Enable new styles only in the new layout pages.
33
import "$lib/app.css";
44
import Background from "$lib/components/UI/Background.svelte";
5-
import FlyWrapper from "$lib/components/UI/animation/FlyWrapper.svelte";
65
76
const { children, data } = $props();
87
</script>
@@ -11,8 +10,6 @@
1110
<Background
1211
class="text-ii-text-primary-dark dark:text-ii-text-primary-light bg-ii-background-primary-light dark:bg-ii-background-primary-dark"
1312
>
14-
<FlyWrapper>
15-
{@render children()}
16-
</FlyWrapper>
13+
{@render children()}
1714
</Background>
1815
{/key}

src/frontend/src/routes/(new-styling)/new-authorize/+page.svelte

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131
import { isCanisterError, throwCanisterError } from "$lib/utils/utils";
3232
import { authenticateWithJWT } from "$lib/utils/authenticate/jwt";
3333
import { type State } from "./state";
34-
import ConnectOrCreatePasskey from "./stateComponents/ConnectOrCreatePasskey.svelte";
35-
import CreatePasskey from "./stateComponents/CreatePasskey.svelte";
36-
import SolveCaptcha from "./stateComponents/SolveCaptcha.svelte";
37-
import ContinueAs from "./stateComponents/ContinueAs.svelte";
34+
import ConnectOrCreatePasskey from "./components/ConnectOrCreatePasskey.svelte";
35+
import CreatePasskey from "./components/CreatePasskey.svelte";
36+
import SolveCaptcha from "./components/SolveCaptcha.svelte";
37+
import ContinueAs from "./components/ContinueAs.svelte";
3838
import Dialog from "$lib/components/UI/Dialog.svelte";
3939
import Button from "$lib/components/UI/Button.svelte";
4040
+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33
import { fly } from "svelte/transition";
44
import { type State } from "../state.js";
55
6-
type Props = Omit<
7-
Extract<State, { state: "connectOrCreatePasskey" }>,
8-
"state"
9-
>;
6+
type Props = Extract<State, { state: "connectOrCreatePasskey" }>;
107
118
const { connect, create }: Props = $props();
129
</script>

src/frontend/src/routes/(new-styling)/new-authorize/stateComponents/ContinueAs.svelte renamed to src/frontend/src/routes/(new-styling)/new-authorize/components/ContinueAs.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Button from "$lib/components/UI/Button.svelte";
33
import { type State } from "../state";
44
5-
type Props = Omit<Extract<State, { state: "continueAs" }>, "state">;
5+
type Props = Extract<State, { state: "continueAs" }>;
66
77
const { number, name }: Props = $props();
88
</script>

src/frontend/src/routes/(new-styling)/new-authorize/stateComponents/CreatePasskey.svelte renamed to src/frontend/src/routes/(new-styling)/new-authorize/components/CreatePasskey.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import { type State } from "../state";
55
import { onMount } from "svelte";
66
7-
type Props = Omit<Extract<State, { state: "createPasskey" }>, "state">;
7+
type Props = Extract<State, { state: "createPasskey" }>;
88
99
const { create, cancel }: Props = $props();
1010

src/frontend/src/routes/(new-styling)/new-authorize/stateComponents/SolveCaptcha.svelte renamed to src/frontend/src/routes/(new-styling)/new-authorize/components/SolveCaptcha.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import { type State } from "../state";
44
import { tick } from "svelte";
55
6-
type Props = Omit<Extract<State, { state: "solveCaptcha" }>, "state">;
6+
type Props = Extract<State, { state: "solveCaptcha" }>;
77
88
const { image, attempt, solve, cancel }: Props = $props();
99

0 commit comments

Comments
 (0)