Skip to content

Commit

Permalink
feat: favicon and title
Browse files Browse the repository at this point in the history
  • Loading branch information
pociej committed Apr 10, 2024
1 parent 28a8797 commit 74239a4
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 19 deletions.
32 changes: 20 additions & 12 deletions frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
<!doctype html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>

<head>
<!-- Start cookieyes banner -->

<!-- End cookieyes banner -->
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="manifest" href="/manifest.webmanifest" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title> Deposit payment example</title>

</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
1 change: 1 addition & 0 deletions frontend/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions frontend/src/components/RegisterButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ export const RegisterButton = ({ isVisible }: { isVisible: boolean }) => {
const { login, tokens, isWaiting } = useLogin();

if (!walletAddress) {
return <></>;
throw new Error("Wallet address not found");
}

const debouncedPending = useDebounce(
isPending,
new Map([
Expand Down
4 changes: 3 additions & 1 deletion frontend/src/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ import { useUser } from "hooks/useUser";
import { ConnectWallet } from "./connectWallet";
import { Allowance } from "./allowace";
import { Register } from "./register";
import { useAccount } from "wagmi";

export function Home() {
const { user } = useUser();
const { address } = useAccount();
return (
<div className="w-screen h-screen flex justify-center ">
<ConnectWallet />
<Allowance />
<Register />
{address && <Register />}
{/* <Register />
{/* {match(user.state)
.with(UserState.CONNECTED, () => <RegisterButton />)
Expand Down
7 changes: 3 additions & 4 deletions frontend/src/components/providers/blockchainProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ createWeb3Modal({
projectId: config.projectId,
themeVariables: {
"--w3m-font-family": "Kanit-Light",
"--w3m-accent": "#181EA9",
"--w3m-border-radius-master": "10px",
"--w3m-color-mix": "#181EA9",
"--w3m-font-size-master": "1rem",
"--w3m-accent": "#181ea9a6",
"--w3m-border-radius-master": "5px",
"--w3m-font-size-master": "0.9rem",
},
});

Expand Down

0 comments on commit 74239a4

Please sign in to comment.