Remove session from nav for auth (#51)
* Removed session from nav * Add note that you can copy the qrcode * Moving WC icon to the right
This commit is contained in:
parent
5a438ac92a
commit
aedddbcbdc
@ -13,7 +13,7 @@ import AuthClient from "@walletconnect/auth-client";
|
|||||||
import type { NextPage } from "next";
|
import type { NextPage } from "next";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import Qrcode from "qrcode";
|
import Qrcode from "qrcode";
|
||||||
import { useCallback, useEffect, useRef, useState } from "react";
|
import { Fragment, useCallback, useEffect, useRef, useState } from "react";
|
||||||
|
|
||||||
const Home: NextPage = () => {
|
const Home: NextPage = () => {
|
||||||
const [client, setClient] = useState<AuthClient | null>();
|
const [client, setClient] = useState<AuthClient | null>();
|
||||||
@ -91,18 +91,26 @@ const Home: NextPage = () => {
|
|||||||
Sign in with WalletConnect
|
Sign in with WalletConnect
|
||||||
</Button>
|
</Button>
|
||||||
{uri && (
|
{uri && (
|
||||||
<canvas
|
<Fragment>
|
||||||
onClick={() => {
|
<canvas
|
||||||
navigator.clipboard.writeText(uri).then(() => {
|
onClick={() => {
|
||||||
toast({
|
navigator.clipboard.writeText(uri).then(() => {
|
||||||
title: "URI copied to clipboard",
|
toast({
|
||||||
status: "success",
|
title: "URI copied to clipboard",
|
||||||
duration: 1000,
|
status: "success",
|
||||||
|
duration: 1000,
|
||||||
|
});
|
||||||
});
|
});
|
||||||
});
|
}}
|
||||||
}}
|
ref={canvasRef}
|
||||||
ref={canvasRef}
|
/>
|
||||||
/>
|
<Text
|
||||||
|
color="gray.400"
|
||||||
|
style={{ fontStyle: "italic", fontSize: "0.75em" }}
|
||||||
|
>
|
||||||
|
(You can copy the URI by clicking the QR code above)
|
||||||
|
</Text>
|
||||||
|
</Fragment>
|
||||||
)}
|
)}
|
||||||
</Flex>
|
</Flex>
|
||||||
</form>
|
</form>
|
||||||
|
@ -11,9 +11,15 @@ export default function Navigation() {
|
|||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link href="/sessions" passHref>
|
<Link href="/pairings" passHref>
|
||||||
<a className="navLink">
|
<a className="navLink">
|
||||||
<Image alt="sessions icon" src="/icons/sessions-icon.svg" width={27} height={27} />
|
<Image alt="pairings icon" src="/icons/pairings-icon.svg" width={25} height={25} />
|
||||||
|
</a>
|
||||||
|
</Link>
|
||||||
|
|
||||||
|
<Link href="/settings" passHref>
|
||||||
|
<a className="navLink">
|
||||||
|
<Image alt="settings icon" src="/icons/settings-icon.svg" width={27} height={27} />
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
@ -34,18 +40,6 @@ export default function Navigation() {
|
|||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link href="/pairings" passHref>
|
|
||||||
<a className="navLink">
|
|
||||||
<Image alt="pairings icon" src="/icons/pairings-icon.svg" width={25} height={25} />
|
|
||||||
</a>
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
<Link href="/settings" passHref>
|
|
||||||
<a className="navLink">
|
|
||||||
<Image alt="settings icon" src="/icons/settings-icon.svg" width={27} height={27} />
|
|
||||||
</a>
|
|
||||||
</Link>
|
|
||||||
</Row>
|
</Row>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user