Skip to content

Commit 5e52dfe

Browse files
committed
chore: fixed format issues in eid-wallet
1 parent 6528a18 commit 5e52dfe

File tree

40 files changed

+1463
-1471
lines changed

40 files changed

+1463
-1471
lines changed

infrastructure/eid-wallet/src/lib/fragments/Hero/Hero.svelte

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<script lang="ts">
2-
import * as Button from "$lib/ui/Button";
3-
import { cn } from "$lib/utils";
4-
import { Settings02Icon } from "@hugeicons/core-free-icons";
5-
import type { Snippet } from "svelte";
6-
import type { HTMLAttributes } from "svelte/elements";
2+
import * as Button from "$lib/ui/Button";
3+
import { cn } from "$lib/utils";
4+
import { Settings02Icon } from "@hugeicons/core-free-icons";
5+
import type { Snippet } from "svelte";
6+
import type { HTMLAttributes } from "svelte/elements";
77
8-
interface IHeroProps extends HTMLAttributes<HTMLElement> {
9-
title?: string;
10-
subtitle?: Snippet;
11-
showSettings?: boolean;
12-
titleClasses?: string;
13-
}
14-
const {
15-
title,
16-
subtitle,
17-
showSettings = false,
18-
titleClasses,
19-
children,
20-
...restProps
21-
}: IHeroProps = $props();
22-
const baseClasses = "w-full flex justify-between items-center";
8+
interface IHeroProps extends HTMLAttributes<HTMLElement> {
9+
title?: string;
10+
subtitle?: Snippet;
11+
showSettings?: boolean;
12+
titleClasses?: string;
13+
}
14+
const {
15+
title,
16+
subtitle,
17+
showSettings = false,
18+
titleClasses,
19+
children,
20+
...restProps
21+
}: IHeroProps = $props();
22+
const baseClasses = "w-full flex justify-between items-center";
2323
</script>
2424

2525
<header {...restProps} class={cn(baseClasses, restProps.class)}>

infrastructure/eid-wallet/src/lib/fragments/IdentityCard/IdentityCard.svelte

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,47 @@
11
<script lang="ts">
2-
import * as Button from "$lib/ui/Button";
3-
import { cn } from "$lib/utils";
4-
import {
5-
CheckmarkBadge02Icon,
6-
Upload03Icon,
7-
ViewIcon,
8-
} from "@hugeicons/core-free-icons";
9-
import { HugeiconsIcon } from "@hugeicons/svelte";
10-
import type { HTMLAttributes } from "svelte/elements";
2+
import * as Button from "$lib/ui/Button";
3+
import { cn } from "$lib/utils";
4+
import {
5+
CheckmarkBadge02Icon,
6+
Upload03Icon,
7+
ViewIcon,
8+
} from "@hugeicons/core-free-icons";
9+
import { HugeiconsIcon } from "@hugeicons/svelte";
10+
import type { HTMLAttributes } from "svelte/elements";
1111
12-
interface userData {
13-
[fieldName: string]: string;
14-
}
15-
interface IIdentityCard extends HTMLAttributes<HTMLElement> {
16-
variant?: "eName" | "ePassport" | "eVault";
17-
userId?: string;
18-
viewBtn?: () => void;
19-
shareBtn?: () => void;
20-
userData?: userData;
21-
totalStorage?: number;
22-
usedStorage?: number;
23-
}
12+
interface userData {
13+
[fieldName: string]: string;
14+
}
15+
interface IIdentityCard extends HTMLAttributes<HTMLElement> {
16+
variant?: "eName" | "ePassport" | "eVault";
17+
userId?: string;
18+
viewBtn?: () => void;
19+
shareBtn?: () => void;
20+
userData?: userData;
21+
totalStorage?: number;
22+
usedStorage?: number;
23+
}
2424
25-
const {
26-
variant = "eName",
27-
userId,
28-
viewBtn,
29-
shareBtn,
30-
userData,
31-
totalStorage = 0,
32-
usedStorage = 0,
33-
...restProps
34-
}: IIdentityCard = $props();
35-
const state = $state({
36-
progressWidth: "0%",
37-
});
25+
const {
26+
variant = "eName",
27+
userId,
28+
viewBtn,
29+
shareBtn,
30+
userData,
31+
totalStorage = 0,
32+
usedStorage = 0,
33+
...restProps
34+
}: IIdentityCard = $props();
35+
const state = $state({
36+
progressWidth: "0%",
37+
});
3838
39-
$effect(() => {
40-
state.progressWidth =
41-
usedStorage > 0 ? `${(usedStorage / totalStorage) * 100}%` : "0%";
42-
});
39+
$effect(() => {
40+
state.progressWidth =
41+
usedStorage > 0 ? `${(usedStorage / totalStorage) * 100}%` : "0%";
42+
});
4343
44-
const baseClasses = `relative ${variant === "eName" ? "bg-black-900" : variant === "ePassport" ? "bg-primary" : "bg-gray"} rounded-3xl w-full min-h-[150px] text-white overflow-hidden`;
44+
const baseClasses = `relative ${variant === "eName" ? "bg-black-900" : variant === "ePassport" ? "bg-primary" : "bg-gray"} rounded-3xl w-full min-h-[150px] text-white overflow-hidden`;
4545
</script>
4646

4747
<div {...restProps} class={cn(baseClasses, restProps.class)}>

infrastructure/eid-wallet/src/lib/fragments/SplashScreen/SplashScreen.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
2-
import { cubicOut } from "svelte/easing";
3-
import { fade, scale } from "svelte/transition";
2+
import { cubicOut } from "svelte/easing";
3+
import { fade, scale } from "svelte/transition";
44
</script>
55

66
<div

0 commit comments

Comments
 (0)