File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/modules/order/components/onboarding-cta Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
import Button from "@modules/common/components/button"
2
2
3
3
const OnboardingCta = ( { orderId } : { orderId : string } ) => {
4
+ const resetOnboarding = ( ) => {
5
+ window . sessionStorage . setItem ( "onboarding" , "false" )
6
+ }
7
+
4
8
return (
5
9
< div className = "max-w-4xl h-full bg-white w-full mb-4" >
6
10
< div className = "flex flex-col gap-y-6 center p-10 md:items-center" >
@@ -12,6 +16,7 @@ const OnboardingCta = ({ orderId }: { orderId: string }) => {
12
16
</ span >
13
17
< a
14
18
href = { `http://localhost:7001/a/orders/?order_id=${ orderId } &onboarding_step=setup_finished_nextjs` }
19
+ onClick = { resetOnboarding }
15
20
>
16
21
< Button className = "md:w-80" > Complete setup in admin</ Button >
17
22
</ a >
You can’t perform that action at this time.
0 commit comments