Skip to content

Commit 1e41871

Browse files
committed
help page
1 parent ac4703b commit 1e41871

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

src/routes/trading/+page.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import type { PageData } from './$types';
3-
import { TrendingUp, ChevronRight, Landmark } from '@lucide/svelte';
3+
import { TrendingUp, ChevronRight, Landmark, HelpCircle } from '@lucide/svelte';
44
import { goto } from '$app/navigation';
55
import { untrack } from 'svelte';
66
import CurrentBankPicker from '$lib/components/CurrentBankPicker.svelte';
@@ -52,6 +52,9 @@
5252
<div class="flex flex-wrap items-center gap-4 mb-8">
5353
<TrendingUp class="size-8 text-primary-500" />
5454
<h1 class="h1">Trading</h1>
55+
<a href="/trading/help" class="anchor inline-flex items-center gap-1 text-sm">
56+
<HelpCircle class="size-4" /> How it works
57+
</a>
5558
{#if data.isAuthenticated}
5659
<div class="ms-auto">
5760
<CurrentBankPicker

src/routes/trading/banks/[bankId]/accounts/[accountId]/views/[viewId]/+layout.svelte

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
22
import type { LayoutData } from './$types';
33
import { page } from '$app/state';
4-
import { TrendingUp, Tag, BarChart3 } from '@lucide/svelte';
4+
import { TrendingUp, Tag, BarChart3, HelpCircle } from '@lucide/svelte';
55
66
let { data, children }: { data: LayoutData; children: any } = $props();
77
@@ -17,6 +17,12 @@
1717
label: 'Market',
1818
match: '/market',
1919
icon: BarChart3
20+
},
21+
{
22+
href: '/trading/help',
23+
label: 'Help',
24+
match: '/trading/help',
25+
icon: HelpCircle
2026
}
2127
]);
2228

0 commit comments

Comments
 (0)