Skip to content

Commit 2fe7b12

Browse files
committed
feat: reset onboaridng on completion
1 parent 3c3745c commit 2fe7b12

File tree

1 file changed

+5
-0
lines changed
  • src/modules/order/components/onboarding-cta

1 file changed

+5
-0
lines changed

src/modules/order/components/onboarding-cta/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import Button from "@modules/common/components/button"
22

33
const OnboardingCta = ({ orderId }: { orderId: string }) => {
4+
const resetOnboarding = () => {
5+
window.sessionStorage.setItem("onboarding", "false")
6+
}
7+
48
return (
59
<div className="max-w-4xl h-full bg-white w-full mb-4">
610
<div className="flex flex-col gap-y-6 center p-10 md:items-center">
@@ -12,6 +16,7 @@ const OnboardingCta = ({ orderId }: { orderId: string }) => {
1216
</span>
1317
<a
1418
href={`http://localhost:7001/a/orders/?order_id=${orderId}&onboarding_step=setup_finished_nextjs`}
19+
onClick={resetOnboarding}
1520
>
1621
<Button className="md:w-80">Complete setup in admin</Button>
1722
</a>

0 commit comments

Comments
 (0)