Remove unused links in sidebar
This commit is contained in:
@@ -23,23 +23,6 @@
|
||||
<div class="mt-12 mr-12 flex flex-col gap-1">
|
||||
<!-- Sidebar links -->
|
||||
<a href="/dashboard" class="text-blue-600">Dashboard</a>
|
||||
|
||||
<div class="flex flex-col">
|
||||
<button
|
||||
class="flex items-center gap-1 text-left text-gray-700 hover:text-gray-900"
|
||||
onclick={() => (adminExpanded = !adminExpanded)}
|
||||
>
|
||||
<span class="w-4 text-xs">{adminExpanded ? '▼' : '▶'}</span>
|
||||
Admin
|
||||
</button>
|
||||
{#if adminExpanded}
|
||||
<div class="ml-5 flex flex-col">
|
||||
<a href="/affirmations" class="text-blue-600">Affirmations</a>
|
||||
<a href="/frequencies" class="text-blue-600">Solfeggio Frequencies</a>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
{#if isAdmin}
|
||||
<div class="mt-2 flex flex-col">
|
||||
<a
|
||||
|
||||
@@ -6,7 +6,17 @@
|
||||
let { children } = $props();
|
||||
</script>
|
||||
|
||||
<svelte:head><link rel="icon" href={favicon} /></svelte:head>
|
||||
<svelte:head>
|
||||
<link rel="icon" href={favicon} />
|
||||
<title>Rhema Wave Technologies</title>
|
||||
<meta name="description" content="Rhema Wave Technologies User Portal — manage affirmations, audio content, and solfeggio frequencies." />
|
||||
<meta name="theme-color" content="#7B2D8E" />
|
||||
<meta property="og:title" content="Rhema Wave Technologies" />
|
||||
<meta property="og:description" content="Manage affirmations, audio content, and solfeggio frequencies." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:site_name" content="Rhema Wave Technologies" />
|
||||
<meta name="twitter:card" content="summary" />
|
||||
</svelte:head>
|
||||
|
||||
<TopBar />
|
||||
<div class="flex min-h-0 flex-1 px-8">
|
||||
|
||||
@@ -42,10 +42,11 @@ export const actions: Actions = {
|
||||
return fail(400);
|
||||
}
|
||||
} catch (err) {
|
||||
if (!isRedirect(err)) {
|
||||
console.log(err);
|
||||
throw error(400, 'bad request');
|
||||
if (isRedirect(err)) {
|
||||
throw err;
|
||||
}
|
||||
console.log(err);
|
||||
throw error(400, 'bad request');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user