summaryrefslogtreecommitdiff
path: root/ui/src/routes/(app)/ch
diff options
context:
space:
mode:
authorOwen Jacobson <owen@grimoire.ca>2024-10-10 21:05:48 -0400
committerOwen Jacobson <owen@grimoire.ca>2024-10-10 21:05:48 -0400
commit4401dce2b5545ce8117818812d8e3c8919f5f7fd (patch)
treedf04478e6094a2a8cdd14ecd31b77caacff78de6 /ui/src/routes/(app)/ch
parent999996961e6e8ebcde125ff0022df875d62817b3 (diff)
Remove redundancy in `hi-ui` directory name.
Diffstat (limited to 'ui/src/routes/(app)/ch')
-rw-r--r--ui/src/routes/(app)/ch/[channel]/+page.svelte17
1 files changed, 17 insertions, 0 deletions
diff --git a/ui/src/routes/(app)/ch/[channel]/+page.svelte b/ui/src/routes/(app)/ch/[channel]/+page.svelte
new file mode 100644
index 0000000..ef439d0
--- /dev/null
+++ b/ui/src/routes/(app)/ch/[channel]/+page.svelte
@@ -0,0 +1,17 @@
+<script>
+ import { afterNavigate } from '$app/navigation';
+ import { page } from '$app/stores';
+
+ import { activeChannel } from '$lib/store';
+ import ActiveChannel from '$lib/components/ActiveChannel.svelte';
+
+ afterNavigate(async () => {
+ let { channel } = $page.params;
+ activeChannel.update((value) => {
+ value.set(channel)
+ return value;
+ });
+ });
+</script>
+
+<ActiveChannel />