Skip to content

Commit

Permalink
Update the connect success message
Browse files Browse the repository at this point in the history
  • Loading branch information
yanheChen committed Oct 20, 2024
1 parent 418b952 commit b42b1f4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/launch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ const Launch = (): React.JSX.Element => {
const [isRecipeLoading, setIsRecipeLoading] = useState(false)
const [isLaunching, setIsLaunching] = useState(false)
const [isWalletConnected, setIsWalletConnected] = useState(false)
const [walletAddress, setWalletAddress] = useState('')
const launchParamsRef = useRef<HTMLDivElement>(null)
const memeRecipeRef = useRef<HTMLDivElement>(null)
const deployRef = useRef<HTMLDivElement>(null)
Expand Down Expand Up @@ -202,13 +201,6 @@ const Launch = (): React.JSX.Element => {
}, 100)
}

const connectWallet = (e: React.FormEvent): void => {
e.preventDefault()
const simulatedAddress = '0x742d35Cc6634C0532925a3b844Bc454e4438f44e'
setWalletAddress(simulatedAddress)
setIsWalletConnected(true)
}

const handleLaunch = async (e: React.FormEvent): Promise<void> => {
e.preventDefault()
console.log('Launching with parameters:', {
Expand Down Expand Up @@ -504,7 +496,7 @@ const Launch = (): React.JSX.Element => {
</HStack>
{isWalletConnected && (
<Text fontSize="sm" color="green.500" textAlign="center">
Wallet Connected: {walletAddress.slice(0, 6)}...{walletAddress.slice(-4)}
Wallet Connected Successfull!
</Text>
)}
<Box w="100%" bg="white" p={6} borderRadius="md" boxShadow="md" ref={deployRef}>
Expand Down

0 comments on commit b42b1f4

Please sign in to comment.