diff --git a/public/logo-no-bg.png b/public/logo-no-bg.png new file mode 100644 index 0000000..0be2f57 Binary files /dev/null and b/public/logo-no-bg.png differ diff --git a/src/components/Body/AddressInput/AddressBook/index.tsx b/src/components/Body/AddressInput/AddressBook/index.tsx index 2a4e587..ca9e3df 100644 --- a/src/components/Body/AddressInput/AddressBook/index.tsx +++ b/src/components/Body/AddressInput/AddressBook/index.tsx @@ -72,6 +72,7 @@ function AddressBook({ lg: "60rem", }} pb="6" + bg={"brand.lightBlack"} > Address Book diff --git a/src/components/Body/AddressInput/index.tsx b/src/components/Body/AddressInput/index.tsx index 3142624..ccc73d3 100644 --- a/src/components/Body/AddressInput/index.tsx +++ b/src/components/Body/AddressInput/index.tsx @@ -18,7 +18,6 @@ interface AddressInputParams { setShowAddress: (value: string) => void; setAddress: (value: string) => void; setIsAddressValid: (value: boolean) => void; - bg: string; isAddressValid: boolean; selectedTabIndex: number; isConnected: boolean; @@ -32,7 +31,6 @@ function AddressInput({ setShowAddress, setAddress, setIsAddressValid, - bg, isAddressValid, selectedTabIndex, isConnected, @@ -61,7 +59,7 @@ function AddressInput({ setAddress(_showAddress); setIsAddressValid(true); // remove inValid warning when user types again }} - bg={bg} + bg={"brand.lightBlack"} isInvalid={!isAddressValid} /> {(selectedTabIndex === 0 && isConnected) || diff --git a/src/components/Body/IFrameConnectTab/SupportedDapps/index.tsx b/src/components/Body/IFrameConnectTab/SupportedDapps/index.tsx index c8baa1d..0b26e17 100644 --- a/src/components/Body/IFrameConnectTab/SupportedDapps/index.tsx +++ b/src/components/Body/IFrameConnectTab/SupportedDapps/index.tsx @@ -95,6 +95,7 @@ function SupportedDapps({ md: "40rem", lg: "60rem", }} + bg={"brand.lightBlack"} > Select a dapp diff --git a/src/components/Body/IFrameConnectTab/index.tsx b/src/components/Body/IFrameConnectTab/index.tsx index 4719c5a..0b51627 100644 --- a/src/components/Body/IFrameConnectTab/index.tsx +++ b/src/components/Body/IFrameConnectTab/index.tsx @@ -24,7 +24,6 @@ interface IFrameConnectTabParams { inputAppUrl: string | undefined; setInputAppUrl: (value: string | undefined) => void; appUrl: string | undefined; - bg: string; isIFrameLoading: boolean; setIsIFrameLoading: (value: boolean) => void; iframeKey: number; @@ -37,7 +36,6 @@ function IFrameConnectTab({ initIFrame, setInputAppUrl, inputAppUrl, - bg, isIFrameLoading, appUrl, iframeKey, @@ -63,12 +61,12 @@ function IFrameConnectTab({ setInputAppUrl(e.target.value)} - bg={bg} /> {inputAppUrl && ( diff --git a/src/components/Body/NetworkInput.tsx b/src/components/Body/NetworkInput.tsx index cf7d122..800feb1 100644 --- a/src/components/Body/NetworkInput.tsx +++ b/src/components/Body/NetworkInput.tsx @@ -46,10 +46,20 @@ function NetworkInput({ size="md" tagVariant="solid" chakraStyles={{ + menuList: (provided) => ({ + ...provided, + bg: "brand.black", + }), + option: (provided, state) => ({ + ...provided, + color: "white", + bg: state.isFocused ? "whiteAlpha500" : "brand.lightBlack", + }), groupHeading: (provided, state) => ({ ...provided, h: "1px", borderTop: "1px solid white", + bg: "brand.black", }), }} closeMenuOnSelect diff --git a/src/components/Body/NotificationBar.tsx b/src/components/Body/NotificationBar.tsx index 086e325..d3ad3d4 100644 --- a/src/components/Body/NotificationBar.tsx +++ b/src/components/Body/NotificationBar.tsx @@ -13,50 +13,49 @@ import { faDiscord } from "@fortawesome/free-brands-svg-icons"; import { ExternalLinkIcon } from "@chakra-ui/icons"; import axios from "axios"; -// const CLOSED_KEY = "discord-notif-closed"; +const CLOSED_KEY = "new-ui-notif-closed"; function NotificationBar() { - // const isClosed = localStorage.getItem(CLOSED_KEY); + const isClosed = localStorage.getItem(CLOSED_KEY); - // const [isVisible, setIsVisible] = useState( - // isClosed === "true" ? false : true - // ); - - // useEffect(() => { - // if (!isVisible) { - // localStorage.setItem(CLOSED_KEY, "true"); - // } - // }, [isVisible]); - - const [donor, setDonor] = useState(); + const [isVisible, setIsVisible] = useState( + isClosed === "true" ? false : true + ); useEffect(() => { - axios - .get("https://api.impersonator.xyz/api") - .then((res) => { - setDonor(res.data); - }) - .catch((err) => { - console.log(err); - }); - }, []); + if (!isVisible) { + localStorage.setItem(CLOSED_KEY, "true"); + } + }, [isVisible]); - return donor ? ( - + // const [donor, setDonor] = useState(); + + // useEffect(() => { + // axios + // .get("https://api.impersonator.xyz/api") + // .then((res) => { + // setDonor(res.data); + // }) + // .catch((err) => { + // console.log(err); + // }); + // }, []); + + return isVisible ? ( +
- 🏆 Thanks to{" "} - {donor} for donating in - Gitcoin Grants #18 + {" "} + New UI is here
- {/* setIsVisible(false)} - /> */} + />
) : null; } diff --git a/src/components/Body/TabsSelect.tsx b/src/components/Body/TabsSelect.tsx index 852f33d..22e1e65 100644 --- a/src/components/Body/TabsSelect.tsx +++ b/src/components/Body/TabsSelect.tsx @@ -19,7 +19,7 @@ function TabsSelect({ minH="3rem" px="1.5rem" spacing={"8"} - background="gray.700" + bg={"brand.lightBlack"} borderRadius="xl" > {tabs.map((t, i) => ( diff --git a/src/components/Body/TenderlySettings.tsx b/src/components/Body/TenderlySettings.tsx index 683a951..ec4bf9f 100644 --- a/src/components/Body/TenderlySettings.tsx +++ b/src/components/Body/TenderlySettings.tsx @@ -43,7 +43,13 @@ function TenderlySettings({ - + (optional) Tenderly Fork Id: diff --git a/src/components/Body/TransactionRequests.tsx b/src/components/Body/TransactionRequests.tsx index b807375..d7de61a 100644 --- a/src/components/Body/TransactionRequests.tsx +++ b/src/components/Body/TransactionRequests.tsx @@ -25,6 +25,7 @@ import { } from "@chakra-ui/icons"; import CopyToClipboard from "./CopyToClipboard"; import { TxnDataType } from "../../types"; +import { useEffect } from "react"; export const slicedText = (txt: string) => { return txt.length > 6 @@ -81,7 +82,16 @@ function TransactionRequests({ setSendTxnData, networkId, }: TransactionRequestsParams) { - const { isOpen: tableIsOpen, onToggle: tableOnToggle } = useDisclosure(); + const { + isOpen: tableIsOpen, + onOpen: tableOnOpen, + onToggle: tableOnToggle, + } = useDisclosure(); + + useEffect(() => { + // keep table open on load + tableOnOpen(); + }, []); return ( void; - bg: string; isConnected: boolean; initWalletConnect: () => void; } @@ -24,7 +23,6 @@ interface URIInputParams { function URIInput({ uri, setUri, - bg, isConnected, initWalletConnect, }: URIInputParams) { @@ -63,6 +61,7 @@ function URIInput({ {uri && !isConnected && ( diff --git a/src/components/Body/WalletConnectTab/index.tsx b/src/components/Body/WalletConnectTab/index.tsx index 4d20ad0..76e90b6 100644 --- a/src/components/Body/WalletConnectTab/index.tsx +++ b/src/components/Body/WalletConnectTab/index.tsx @@ -7,7 +7,6 @@ import URIInput from "./URIInput"; interface WalletConnectTabParams { uri: string; setUri: (value: string) => void; - bg: string; isConnected: boolean; initWalletConnect: () => void; loading: boolean; @@ -20,7 +19,6 @@ interface WalletConnectTabParams { function WalletConnectTab({ uri, setUri, - bg, isConnected, initWalletConnect, loading, @@ -34,7 +32,6 @@ function WalletConnectTab({ diff --git a/src/components/Body/index.tsx b/src/components/Body/index.tsx index 89dc615..bb62ffb 100644 --- a/src/components/Body/index.tsx +++ b/src/components/Body/index.tsx @@ -641,7 +641,6 @@ function Body() { setShowAddress={setShowAddress} setAddress={setAddress} setIsAddressValid={setIsAddressValid} - bg={bgColor[colorMode]} isAddressValid={isAddressValid} selectedTabIndex={selectedTabIndex} isConnected={isConnected} @@ -666,7 +665,6 @@ function Body() { )} - +
Found the project helpful?
@@ -113,13 +119,11 @@ function Footer() { <> @@ -133,7 +137,7 @@ function Footer() { backdropFilter="auto" backdropBlur="3px" /> - + Support diff --git a/src/components/Navbar.tsx b/src/components/Navbar.tsx index 7f51bb0..bb8b508 100644 --- a/src/components/Navbar.tsx +++ b/src/components/Navbar.tsx @@ -15,7 +15,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faGithub } from "@fortawesome/free-brands-svg-icons"; function Navbar() { - const { colorMode, toggleColorMode } = useColorMode(); + const { colorMode } = useColorMode(); const underlineColor = { light: "gray.500", dark: "gray.400" }; return ( @@ -32,14 +32,11 @@ function Navbar() { pr="2rem" > - + Impersonator -