Skip to content

Commit b007614

Browse files
authored
fix(cli): conditionally import Button based on payments provider (#653)
1 parent 1ad846e commit b007614

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

apps/cli/templates/auth/better-auth/web/react/next/src/app/dashboard/dashboard.tsx.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"use client";
2+
{{#if (eq payments "polar")}}
23
import { Button } from "@/components/ui/button";
4+
{{/if}}
35
import { authClient } from "@/lib/auth-client";
46
{{#if (eq api "orpc")}}
57
import { useQuery } from "@tanstack/react-query";

apps/cli/templates/auth/better-auth/web/react/react-router/src/routes/dashboard.tsx.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
{{#if (eq payments "polar")}}
12
import { Button } from "@/components/ui/button";
3+
{{/if}}
24
import { authClient } from "@/lib/auth-client";
35
{{#if (eq api "orpc")}}
46
import { orpc } from "@/utils/orpc";

apps/cli/templates/auth/better-auth/web/react/tanstack-router/src/routes/dashboard.tsx.hbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
{{#if (eq payments "polar")}}
12
import { Button } from "@/components/ui/button";
3+
{{/if}}
24
import { authClient } from "@/lib/auth-client";
35
{{#if (eq api "orpc")}}
46
import { orpc } from "@/utils/orpc";

0 commit comments

Comments
 (0)