Skip to content

Commit 0dc8c3a

Browse files
committed
User Invitation button
1 parent e69bebf commit 0dc8c3a

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

src/lib/config/navigation.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {
1919
Box,
2020
Settings,
2121
FileText,
22-
Mail,
2322
} from "@lucide/svelte";
2423
import { env } from "$env/dynamic/public";
2524

@@ -81,11 +80,6 @@ function buildDevOpsItems(): NavigationItem[] {
8180
label: "Migrations",
8281
iconComponent: GitBranch,
8382
},
84-
{
85-
href: "/user-invitations",
86-
label: "User Invitations",
87-
iconComponent: Mail,
88-
},
8983
];
9084

9185
return items;

src/routes/(protected)/users/+page.svelte

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<script lang="ts">
2+
import { Mail } from "@lucide/svelte";
23
import type { PageData } from "./$types";
34
45
let { data } = $props<{ data: PageData }>();
@@ -133,7 +134,16 @@
133134
</div>
134135
{/if}
135136

136-
<h1 class="text-3xl font-bold mb-6">Users</h1>
137+
<div class="flex items-center justify-between mb-6">
138+
<h1 class="text-3xl font-bold">Users</h1>
139+
<a
140+
href="/user-invitations"
141+
class="btn btn-secondary flex items-center gap-2"
142+
>
143+
<Mail size={18} />
144+
<span>User Invitations</span>
145+
</a>
146+
</div>
137147

138148
<!-- Smart Search Panel -->
139149
<div class="panel mb-6">
@@ -390,6 +400,26 @@
390400
cursor: not-allowed;
391401
}
392402
403+
.btn-secondary {
404+
background: white;
405+
color: #3b82f6;
406+
border: 1px solid #3b82f6;
407+
}
408+
409+
.btn-secondary:hover {
410+
background: #eff6ff;
411+
}
412+
413+
:global([data-mode="dark"]) .btn-secondary {
414+
background: rgb(var(--color-surface-700));
415+
color: rgb(var(--color-primary-400));
416+
border-color: rgb(var(--color-primary-400));
417+
}
418+
419+
:global([data-mode="dark"]) .btn-secondary:hover {
420+
background: rgb(var(--color-surface-600));
421+
}
422+
393423
.table-wrapper {
394424
overflow-x: auto;
395425
}

0 commit comments

Comments
 (0)