From 95b5aa974dd8add27b7058981e2088181e85cb55 Mon Sep 17 00:00:00 2001
From: Hammad Waseem <56793093+Hammad19@users.noreply.github.com>
Date: Wed, 21 Feb 2024 17:12:07 +0500
Subject: [PATCH] Header Completed
---
components/header/index.tsx | 52 ++++++++++++++++---
.../wallet-connect-button.tsx | 6 ++-
pages/create-profile.tsx | 7 +++
3 files changed, 57 insertions(+), 8 deletions(-)
create mode 100644 pages/create-profile.tsx
diff --git a/components/header/index.tsx b/components/header/index.tsx
index 629d8b1..111fcb8 100644
--- a/components/header/index.tsx
+++ b/components/header/index.tsx
@@ -1,15 +1,53 @@
import React from "react";
import Image from "next/image";
+import { WalletMultiButton } from "@solana/wallet-adapter-react-ui";
+import Footer from "../footer";
const Header = () => {
return (
-
-
+
+ {window.location.pathname !== "/" && (
+
+ )}
+
+ {window.location.pathname !== "/" && (
+
+
+
+
+
+ )}
);
};
diff --git a/components/wallet-context-provider/wallet-connect-button.tsx b/components/wallet-context-provider/wallet-connect-button.tsx
index 9adcbc6..ecd4c5f 100644
--- a/components/wallet-context-provider/wallet-connect-button.tsx
+++ b/components/wallet-context-provider/wallet-connect-button.tsx
@@ -1,9 +1,11 @@
import { useWallet } from "@solana/wallet-adapter-react";
import { WalletMultiButton } from "@solana/wallet-adapter-react-ui";
+import { useRouter } from "next/router";
import Button from "@/components/common/button";
const WalletConnectButton = () => {
+ const router = useRouter();
const { publicKey } = useWallet();
return (
@@ -33,7 +35,9 @@ const WalletConnectButton = () => {
styles="w-96"
btnText="Let's Create an Account"
loading={false}
- onClick={() => {}}
+ onClick={() => {
+ router.push("/create-profile");
+ }}
/>
) : (
{
+ return create-profile
;
+};
+
+export default createProfile;