From 4afb04127b2a2df3d43be6723cae6574cc64b062 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Carlos=20S=C3=A1nchez?=
Date: Thu, 21 Nov 2024 17:46:04 +0100
Subject: [PATCH] Remove clone command + Highlight npx command (#41)
---
packages/nextjs/pages/index.tsx | 35 +++------------------------------
1 file changed, 3 insertions(+), 32 deletions(-)
diff --git a/packages/nextjs/pages/index.tsx b/packages/nextjs/pages/index.tsx
index cd344e1..683c227 100644
--- a/packages/nextjs/pages/index.tsx
+++ b/packages/nextjs/pages/index.tsx
@@ -8,7 +8,6 @@ import { MetaHeader } from "~~/components/MetaHeader";
import TrackedLink from "~~/components/TrackedLink";
const Home: NextPage = () => {
- const [cloneCommandCopied, setCloneCommandCopied] = useState(false);
const [npxCommandCopied, setNpxCommandCopied] = useState(false);
const [extensionCommandCopied, setExtensionCommandCopied] = useState(false);
return (
@@ -34,33 +33,6 @@ const Home: NextPage = () => {
Foundry.
-
{
- setCloneCommandCopied(true);
- setTimeout(() => {
- setCloneCommandCopied(false);
- }, 800);
- }}
- >
-
-
- git clone https://github.com/scaffold-eth/scaffold-eth-2.git
-
- {cloneCommandCopied ? (
-
- ) : (
-
- )}
-
-
-
OR
{
}, 800);
}}
>
-
-
npx create-eth@latest
+
+
npx create-eth@latest
{npxCommandCopied ? (
{
)}
-
Beta
@@ -218,7 +189,7 @@ const Home: NextPage = () => {
}, 800);
}}
>
-
+
npx create-eth@latest -e gitHubUsername/repoName
{extensionCommandCopied ? (