-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
37 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { Suspense } from "react"; | ||
import ExampleFunnel from "../funnel"; | ||
|
||
export default function Page() { | ||
return ( | ||
<div> | ||
<Suspense> | ||
<ExampleFunnel /> | ||
</Suspense> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
import { Suspense } from "react"; | ||
import ExampleFunnel from "./funnel"; | ||
"use client"; | ||
import { FunnelClient } from "@xionhub/funnel-core"; | ||
import Link from "next/link"; | ||
import { exampleFunnelOptions } from "~/src/example-funnel"; | ||
|
||
export default function Home() { | ||
const funnelClient = new FunnelClient(exampleFunnelOptions()); | ||
return ( | ||
<div> | ||
<Suspense> | ||
<ExampleFunnel /> | ||
</Suspense> | ||
<Link href={`/funnel${funnelClient.createStep("a")}`}>퍼널로 이동하기</Link> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { FunnelClient, funnelOptions } from "@xionhub/funnel-core"; | ||
|
||
const EXAMPLE_FUNNEL_ID = "hello-this-is-funnel-id"; | ||
export const exampleFunnelOptions = () => | ||
funnelOptions({ | ||
steps: ["a", "b", "c"] as const, | ||
funnelId: EXAMPLE_FUNNEL_ID, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters