Skip to content

Commit 7124e02

Browse files
authored
docs: Fixed a few inconsistencies (#22)
1 parent cf95073 commit 7124e02

File tree

1 file changed

+40
-8
lines changed

1 file changed

+40
-8
lines changed

docs/app/page.tsx

Lines changed: 40 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ export default function Home() {
15021502
`,
15031503
},
15041504
{
1505-
id: "next",
1505+
id: "nextjs",
15061506
label: "Next.js",
15071507
language: "typescript",
15081508
filename: "app/page.tsx",
@@ -2288,13 +2288,45 @@ export default function Home() {
22882288
Update the component to latest and the <Code>better-auth</Code>{" "}
22892289
package to <Code>1.2.12</Code>.
22902290
</P>
2291-
<CodeBlock
2292-
language="shell"
2293-
filename="package.json"
2294-
code={stripIndent`
2295-
npm install @convex-dev/better-auth@latest
2296-
npm install [email protected] --save-exact
2297-
`}
2291+
2292+
<CodeBlock
2293+
variantGroup="package-manager"
2294+
variants={[
2295+
{
2296+
id: "npm",
2297+
label: "npm",
2298+
code: stripIndent`
2299+
npm install @convex-dev/better-auth
2300+
npm install [email protected] --save-exact
2301+
`,
2302+
language: "shell",
2303+
},
2304+
{
2305+
id: "pnpm",
2306+
label: "pnpm",
2307+
code: stripIndent`
2308+
pnpm add @convex-dev/better-auth
2309+
pnpm add [email protected] --save-exact
2310+
`,
2311+
language: "shell",
2312+
},
2313+
{
2314+
id: "yarn",
2315+
code: stripIndent`
2316+
yarn add @convex-dev/better-auth
2317+
yarn add [email protected] --exact
2318+
`,
2319+
language: "shell",
2320+
},
2321+
{
2322+
id: "bun",
2323+
code: stripIndent`
2324+
bun add @convex-dev/better-auth
2325+
bun add [email protected] --exact
2326+
`,
2327+
language: "shell",
2328+
},
2329+
]}
22982330
/>
22992331

23002332
<ContentHeading

0 commit comments

Comments
 (0)