Skip to content

Commit

Permalink
chore: fix double logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lino Le Van authored and Lino Le Van committed Dec 23, 2023
1 parent 8b2435b commit c22f845
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function Header(props: {
<div class="bg-white dark:bg-black absolute top-0 left-0 h-screen">
<Sidebar
class="w-64 p-2 border-r border-gray-200 dark:border-gray-700 pt-4 flex flex-col gap-2"
route="TOP"
route="_PYRO_SHOW_LOGO"
/>
</div>
</details>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Sidebar(
const route_map = props.route_map ?? global_route_map;
return (
<div class={props.class}>
{!props.route_map && (
{(!props.route_map && props.route === "_PYRO_SHOW_LOGO") && (
<a href="/">
<h1 class="font-semibold text-lg text-gray-800 dark:text-gray-200 flex items-center gap-2 mr-4">
<img src="/icon.png" class="w-8 h-8" />
Expand Down

0 comments on commit c22f845

Please sign in to comment.