Commit 8d782db 1 parent feb0a55 commit 8d782db Copy full SHA for 8d782db
File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,7 @@ import {
149
149
import { colorSchemeCookie } from "~/lib/utilities.server" ;
150
150
import classes from "~/styles/dashboard.module.css" ;
151
151
import type { Route } from "./+types/_dashboard" ;
152
+ import { OnboardingTour } from "@gfazioli/mantine-onboarding-tour" ;
152
153
153
154
const discordLink = "https://discord.gg/D9XTg2a7R8" ;
154
155
const desktopSidebarCollapsedCookie = "DesktopSidebarCollapsed" ;
@@ -837,11 +838,10 @@ const LinksGroup = ({
837
838
</ NavLink >
838
839
) ) ;
839
840
840
- return (
841
- < >
841
+ const component = (
842
+ < Box >
842
843
< UnstyledButton < typeof Link >
843
844
className = { classes . control }
844
- data-onboarding-tour-id = { tourStepId }
845
845
component = { ! hasLinks ? Link : undefined }
846
846
// biome-ignore lint/suspicious/noExplicitAny: required here
847
847
to = { ! hasLinks ? href : ( undefined as any ) }
@@ -876,8 +876,15 @@ const LinksGroup = ({
876
876
</ Group >
877
877
</ UnstyledButton >
878
878
{ hasLinks ? < Collapse in = { opened } > { items } </ Collapse > : null }
879
- </ >
879
+ </ Box >
880
880
) ;
881
+
882
+ if ( tourStepId )
883
+ return (
884
+ < OnboardingTour . Target id = { tourStepId } > { component } </ OnboardingTour . Target >
885
+ ) ;
886
+
887
+ return component ;
881
888
} ;
882
889
883
890
const Footer = ( ) => {
You can’t perform that action at this time.
0 commit comments