cleanup: use native html forms for earch and communities
This commit is contained in:
1 parent
e46422c27b
commit
73a4c16322
37 files changed
+254
-246
No files matched your search
@@ -4,14 +4,14 @@
|
||||
|
||||
import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte'
|
||||
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||
import { page } from '$app/stores'
|
||||
import { page } from '$app/state'
|
||||
/**
|
||||
* @typedef {Object} Props
|
||||
* @property {import('svelte').Snippet} [children]
|
||||
*/
|
||||
|
||||
/** @type {Props} */
|
||||
let { children } = $props();
|
||||
let { children } = $props()
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -38,7 +38,7 @@
|
||||
</script>
|
||||
|
||||
<Header pageHeader>
|
||||
{routes.find((r) => $page.url.pathname == r.url)?.name}
|
||||
{routes.find((r) => page.url.pathname == r.url)?.name}
|
||||
</Header>
|
||||
<div class="flex flex-row gap-12">
|
||||
<nav class="flex flex-col gap-2 flex-1 max-sm:hidden">
|
||||
@@ -46,7 +46,7 @@
|
||||
<SidebarButton
|
||||
size="lg"
|
||||
rounding="lg"
|
||||
selected={$page.url.pathname == route.url}
|
||||
selected={page.url.pathname == route.url}
|
||||
href={route.url}
|
||||
>
|
||||
{route.name}
|
||||
|
||||
Reference in new issue
Block a user