Skip to content

Commit 85431c4

Browse files
committed
Swap out old type
1 parent ffbec80 commit 85431c4

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

src/routes/(authenticated)/admin/users/data-table-actions.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<script lang="ts">
2-
import { RoleType } from '$lib/api/internal/v1';
2+
import { RoleType, type AdminUsersView } from '$lib/api/internal/v1';
33
import { Button } from '$lib/components/ui/button';
44
import * as DropdownMenu from '$lib/components/ui/dropdown-menu';
55
import { toast } from 'svelte-sonner';
6-
import type { User } from './columns';
76
import UserDeleteDialog from './dialog-user-delete.svelte';
87
import UserEditDialog from './dialog-user-edit.svelte';
98
109
import Ellipsis from '@lucide/svelte/icons/ellipsis';
1110
1211
type Props = {
13-
user: User;
12+
user: AdminUsersView;
1413
};
1514
1615
let { user }: Props = $props();

src/routes/(authenticated)/admin/users/dialog-user-delete.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<script lang="ts">
2+
import type { AdminUsersView } from '$lib/api/internal/v1';
23
import AbsolutelySureButton from '$lib/components/AbsolutelySureButton.svelte';
34
import * as Dialog from '$lib/components/ui/dialog';
4-
import type { User } from './columns';
55
66
type Props = {
77
open: boolean;
8-
user: User;
8+
user: AdminUsersView;
99
};
1010
1111
let { open = $bindable<boolean>(), user }: Props = $props();

src/routes/(authenticated)/admin/users/dialog-user-edit.svelte

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<script lang="ts">
2-
import { RoleType } from '$lib/api/internal/v1';
2+
import { RoleType, type AdminUsersView } from '$lib/api/internal/v1';
33
import EmailInput from '$lib/components/input/EmailInput.svelte';
44
import TextInput from '$lib/components/input/TextInput.svelte';
55
import UsernameInput from '$lib/components/input/UsernameInput.svelte';
66
import { Button } from '$lib/components/ui/button';
77
import { Checkbox } from '$lib/components/ui/checkbox';
88
import * as Dialog from '$lib/components/ui/dialog';
9-
import type { User } from './columns';
109
1110
type Props = {
1211
open: boolean;
13-
user: User;
12+
user: AdminUsersView;
1413
};
1514
1615
let { open = $bindable<boolean>(), user }: Props = $props();

0 commit comments

Comments
 (0)