mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
Update onboarding-carousel.tsx
This commit is contained in:
@@ -119,7 +119,7 @@ export function OnboardingCarousel() {
|
|||||||
setDirection("next")
|
setDirection("next")
|
||||||
setCurrentSlide(currentSlide + 1)
|
setCurrentSlide(currentSlide + 1)
|
||||||
} else {
|
} else {
|
||||||
handleComplete()
|
setOpen(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -134,7 +134,7 @@ export function OnboardingCarousel() {
|
|||||||
setOpen(false)
|
setOpen(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleComplete = () => {
|
const handleDontShowAgain = () => {
|
||||||
localStorage.setItem("proxmenux-onboarding-seen", "true")
|
localStorage.setItem("proxmenux-onboarding-seen", "true")
|
||||||
setOpen(false)
|
setOpen(false)
|
||||||
}
|
}
|
||||||
@@ -245,7 +245,7 @@ export function OnboardingCarousel() {
|
|||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
onClick={handleComplete}
|
onClick={handleNext}
|
||||||
className="gap-2 bg-gradient-to-r from-blue-500 to-purple-500 hover:from-blue-600 hover:to-purple-600 w-full sm:w-auto"
|
className="gap-2 bg-gradient-to-r from-blue-500 to-purple-500 hover:from-blue-600 hover:to-purple-600 w-full sm:w-auto"
|
||||||
>
|
>
|
||||||
Get Started!
|
Get Started!
|
||||||
@@ -259,7 +259,7 @@ export function OnboardingCarousel() {
|
|||||||
{currentSlide === slides.length - 1 && (
|
{currentSlide === slides.length - 1 && (
|
||||||
<div className="text-center pt-2">
|
<div className="text-center pt-2">
|
||||||
<button
|
<button
|
||||||
onClick={handleComplete}
|
onClick={handleDontShowAgain}
|
||||||
className="text-sm text-muted-foreground hover:text-foreground transition-colors underline"
|
className="text-sm text-muted-foreground hover:text-foreground transition-colors underline"
|
||||||
>
|
>
|
||||||
Don't show again
|
Don't show again
|
||||||
|
|||||||
Reference in New Issue
Block a user