From 60af991dea1dfc29827e007e61925463c2444719 Mon Sep 17 00:00:00 2001 From: Karolina Kosiorowska Date: Fri, 8 Dec 2023 10:39:21 +0100 Subject: [PATCH] Set the page header for dApp --- dapp/public/acre.svg | 4 ++-- dapp/src/components/Header/ConnectWallet.tsx | 2 +- dapp/src/components/Header/index.tsx | 12 ++++++++---- dapp/src/static/icons/AcreLogo.tsx | 13 +++++++++++++ dapp/src/static/icons/index.ts | 1 + 5 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 dapp/src/static/icons/AcreLogo.tsx diff --git a/dapp/public/acre.svg b/dapp/public/acre.svg index 59e8dbf1c..557d8a50e 100644 --- a/dapp/public/acre.svg +++ b/dapp/public/acre.svg @@ -1,4 +1,4 @@ - - + + diff --git a/dapp/src/components/Header/ConnectWallet.tsx b/dapp/src/components/Header/ConnectWallet.tsx index 8b35a010b..7baef9b6b 100644 --- a/dapp/src/components/Header/ConnectWallet.tsx +++ b/dapp/src/components/Header/ConnectWallet.tsx @@ -60,7 +60,7 @@ export default function ConnectWallet() { return ( - + Balance {!btcAccount || btcAccount?.balance.isZero() diff --git a/dapp/src/components/Header/index.tsx b/dapp/src/components/Header/index.tsx index 838ed37b2..56e427097 100644 --- a/dapp/src/components/Header/index.tsx +++ b/dapp/src/components/Header/index.tsx @@ -1,11 +1,15 @@ import React from "react" -import { Flex } from "@chakra-ui/react" +import { Box, Flex, Icon } from "@chakra-ui/react" import ConnectWallet from "./ConnectWallet" +import { AcreLogo } from "../../static/icons" export default function Header() { return ( - - - + + + + + + ) } diff --git a/dapp/src/static/icons/AcreLogo.tsx b/dapp/src/static/icons/AcreLogo.tsx new file mode 100644 index 000000000..94059f58a --- /dev/null +++ b/dapp/src/static/icons/AcreLogo.tsx @@ -0,0 +1,13 @@ +import React from "react" +import { createIcon } from "@chakra-ui/react" + +export const AcreLogo = createIcon({ + displayName: "AcreLogo", + viewBox: "0 0 120 71", + path: ( + + ), +}) diff --git a/dapp/src/static/icons/index.ts b/dapp/src/static/icons/index.ts index 66c6e3aa9..c625a102e 100644 --- a/dapp/src/static/icons/index.ts +++ b/dapp/src/static/icons/index.ts @@ -2,3 +2,4 @@ export * from "./Info" export * from "./Bitcoin" export * from "./Ethereum" export * from "./ChevronRight" +export * from "./AcreLogo"