Skip to content

Commit

Permalink
examples: fix supabase build (#69394)
Browse files Browse the repository at this point in the history
  • Loading branch information
MildTomato committed Aug 28, 2024
1 parent 00f70f2 commit 7da39c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const CheckIcon = () => (
</svg>
);

export function Code({ code }: { code: string }) {
export function CodeBlock({ code }: { code: string }) {
const [icon, setIcon] = useState(CopyIcon);

const copy = async () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TutorialStep } from "./tutorial-step";
import { Code } from "./code";
import { CodeBlock } from "./code-block";

const create = `create table notes (
id bigserial primary key,
Expand Down Expand Up @@ -71,7 +71,7 @@ export default function FetchDataSteps() {
</a>{" "}
and click RUN!
</p>
<Code code={create} />
<CodeBlock code={create} />
</TutorialStep>

<TutorialStep title="Query Supabase data from Next.js">
Expand All @@ -83,9 +83,9 @@ export default function FetchDataSteps() {
</span>{" "}
and add the following.
</p>
<Code code={server} />
<CodeBlock code={server} />
<p>Alternatively, you can use a Client Component.</p>
<Code code={client} />
<CodeBlock code={client} />
</TutorialStep>

<TutorialStep title="Build in a weekend and scale to millions!">
Expand Down

0 comments on commit 7da39c7

Please sign in to comment.