- Get started by editing
- pages/index.tsx
-
diff --git a/packages/create-starknet/templates/next/eslintrc.json b/packages/create-starknet/templates/next/.eslintrc.json similarity index 100% rename from packages/create-starknet/templates/next/eslintrc.json rename to packages/create-starknet/templates/next/.eslintrc.json diff --git a/packages/create-starknet/templates/next/gitignore b/packages/create-starknet/templates/next/.gitignore similarity index 94% rename from packages/create-starknet/templates/next/gitignore rename to packages/create-starknet/templates/next/.gitignore index c87c9b39..fd3dbb57 100644 --- a/packages/create-starknet/templates/next/gitignore +++ b/packages/create-starknet/templates/next/.gitignore @@ -4,6 +4,7 @@ /node_modules /.pnp .pnp.js +.yarn/install-state.gz # testing /coverage @@ -23,7 +24,6 @@ npm-debug.log* yarn-debug.log* yarn-error.log* -.pnpm-debug.log* # local env files .env*.local diff --git a/packages/create-starknet/templates/next/README-template.md b/packages/create-starknet/templates/next/README-template.md index 77b8af02..4de24a3a 100644 --- a/packages/create-starknet/templates/next/README-template.md +++ b/packages/create-starknet/templates/next/README-template.md @@ -10,15 +10,13 @@ npm run dev yarn dev # or pnpm dev +# or +bun dev ``` Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. -You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. - -[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`. - -The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages. +You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. @@ -35,4 +33,4 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. -Check out the [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. +Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/packages/create-starknet/templates/next/components/Header.tsx b/packages/create-starknet/templates/next/components/Header.tsx deleted file mode 100644 index 3d9509c2..00000000 --- a/packages/create-starknet/templates/next/components/Header.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from "react"; -import { useAccount, useDisconnect } from "@starknet-react/core" -import ConnectModal from "./starknet/ConnectModal"; - -export default function Header() { - const { address } = useAccount() - const { disconnect } = useDisconnect(); - - return ( -
{`${address.slice(0, 6)}...${address.slice(-4)}`}
-disconnect()} className="cursor-pointer text-black/50">Disconnect
-
- Get started by editing
- pages/index.tsx
-
+ Get started by editing
+ pages/index.tsx
+