Skip to content

Commit

Permalink
fix: highlight button on workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
pnxl committed Aug 14, 2023
1 parent 6453b97 commit 364a319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ const Layout: Component = () => {
>
<IconFolderAccountOutline class="h-7 w-13 rounded-full "
classList={{
"from-lavender/30 to-mauve/20 bg-gradient-to-r": location.pathname.startsWith("/dashboard/shared"),
"hover:bg-gradient-to-r from-lavender/30": !location.pathname.startsWith("/dashboard/shared")
"from-lavender/30 to-mauve/20 bg-gradient-to-r": typeof params.workspace_id !== "undefined",
"hover:bg-gradient-to-r from-lavender/30": typeof params.workspace_id === "undefined"
}} />
<span class="text-[0.8rem]">My Workspace</span>
</A>
Expand Down

0 comments on commit 364a319

Please sign in to comment.