Skip to content

Commit c22f845

Browse files
Lino Le VanLino Le Van
Lino Le Van
authored and
Lino Le Van
committed
chore: fix double logo
1 parent 8b2435b commit c22f845

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function Header(props: {
2020
<div class="bg-white dark:bg-black absolute top-0 left-0 h-screen">
2121
<Sidebar
2222
class="w-64 p-2 border-r border-gray-200 dark:border-gray-700 pt-4 flex flex-col gap-2"
23-
route="TOP"
23+
route="_PYRO_SHOW_LOGO"
2424
/>
2525
</div>
2626
</details>

src/lib/sidebar.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function Sidebar(
1414
const route_map = props.route_map ?? global_route_map;
1515
return (
1616
<div class={props.class}>
17-
{!props.route_map && (
17+
{(!props.route_map && props.route === "_PYRO_SHOW_LOGO") && (
1818
<a href="/">
1919
<h1 class="font-semibold text-lg text-gray-800 dark:text-gray-200 flex items-center gap-2 mr-4">
2020
<img src="/icon.png" class="w-8 h-8" />

0 commit comments

Comments
 (0)