@coinbase/create-cdp-app 0.0.19 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template-nextjs/src/components/Loading.tsx +1 -1
- package/template-nextjs/src/components/Providers.tsx +5 -3
- package/template-nextjs/src/components/Transaction.tsx +2 -2
- package/template-nextjs/src/components/UserBalance.tsx +1 -1
- package/template-nextjs/tsconfig.json +1 -1
- package/template-react/src/Loading.tsx +1 -1
- package/template-react/src/Transaction.tsx +2 -2
- package/template-react/src/UserBalance.tsx +1 -1
- package/template-react/src/config.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Config } from "@coinbase/cdp-hooks";
|
|
4
|
+
import { CDPReactProvider, type AppConfig } from "@coinbase/cdp-react/components/CDPReactProvider";
|
|
4
5
|
|
|
5
6
|
import { theme } from "@/components/theme";
|
|
6
7
|
|
|
@@ -8,13 +9,14 @@ interface ProvidersProps {
|
|
|
8
9
|
children: React.ReactNode;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
const CDP_CONFIG = {
|
|
12
|
+
const CDP_CONFIG: Config = {
|
|
12
13
|
projectId: process.env.NEXT_PUBLIC_CDP_PROJECT_ID ?? "",
|
|
13
14
|
};
|
|
14
15
|
|
|
15
|
-
const APP_CONFIG = {
|
|
16
|
+
const APP_CONFIG: AppConfig = {
|
|
16
17
|
name: "CDP Next.js StarterKit",
|
|
17
18
|
logoUrl: "http://localhost:3000/logo.svg",
|
|
19
|
+
authMethods: ["email", "sms"],
|
|
18
20
|
};
|
|
19
21
|
|
|
20
22
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useEvmAddress } from "@coinbase/cdp-hooks";
|
|
2
|
-
import { Button } from "@coinbase/cdp-react/components/Button";
|
|
3
|
-
import { LoadingSkeleton } from "@coinbase/cdp-react/components/LoadingSkeleton";
|
|
4
2
|
import {
|
|
5
3
|
SendTransactionButton,
|
|
6
4
|
type SendTransactionButtonProps,
|
|
7
5
|
} from "@coinbase/cdp-react/components/SendTransactionButton";
|
|
6
|
+
import { Button } from "@coinbase/cdp-react/components/ui/Button";
|
|
7
|
+
import { LoadingSkeleton } from "@coinbase/cdp-react/components/ui/LoadingSkeleton";
|
|
8
8
|
import { useMemo, useState } from "react";
|
|
9
9
|
|
|
10
10
|
interface Props {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useEvmAddress } from "@coinbase/cdp-hooks";
|
|
2
|
-
import { Button } from "@coinbase/cdp-react/components/Button";
|
|
3
|
-
import { LoadingSkeleton } from "@coinbase/cdp-react/components/LoadingSkeleton";
|
|
4
2
|
import {
|
|
5
3
|
SendTransactionButton,
|
|
6
4
|
type SendTransactionButtonProps,
|
|
7
5
|
} from "@coinbase/cdp-react/components/SendTransactionButton";
|
|
6
|
+
import { Button } from "@coinbase/cdp-react/components/ui/Button";
|
|
7
|
+
import { LoadingSkeleton } from "@coinbase/cdp-react/components/ui/LoadingSkeleton";
|
|
8
8
|
import { useMemo, useState } from "react";
|
|
9
9
|
|
|
10
10
|
interface Props {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Config } from "@coinbase/cdp-
|
|
1
|
+
import { type Config } from "@coinbase/cdp-hooks";
|
|
2
2
|
import { type AppConfig } from "@coinbase/cdp-react";
|
|
3
3
|
|
|
4
4
|
export const CDP_CONFIG: Config = { projectId: import.meta.env.VITE_CDP_PROJECT_ID };
|
|
@@ -6,4 +6,5 @@ export const CDP_CONFIG: Config = { projectId: import.meta.env.VITE_CDP_PROJECT_
|
|
|
6
6
|
export const APP_CONFIG: AppConfig = {
|
|
7
7
|
name: "CDP React StarterKit",
|
|
8
8
|
logoUrl: "http://localhost:3000/logo.svg",
|
|
9
|
+
authMethods: ["email", "sms"],
|
|
9
10
|
};
|