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 Link from "next/link";
|
||||
import Qrcode from "qrcode";
|
||||
import { useCallback, useEffect, useRef, useState } from "react";
|
||||
import { Fragment, useCallback, useEffect, useRef, useState } from "react";
|
||||
|
||||
const Home: NextPage = () => {
|
||||
const [client, setClient] = useState<AuthClient | null>();
|
||||
@ -91,6 +91,7 @@ const Home: NextPage = () => {
|
||||
Sign in with WalletConnect
|
||||
</Button>
|
||||
{uri && (
|
||||
<Fragment>
|
||||
<canvas
|
||||
onClick={() => {
|
||||
navigator.clipboard.writeText(uri).then(() => {
|
||||
@ -103,6 +104,13 @@ const Home: NextPage = () => {
|
||||
}}
|
||||
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>
|
||||
</form>
|
||||
|
@ -11,9 +11,15 @@ export default function Navigation() {
|
||||
</a>
|
||||
</Link>
|
||||
|
||||
<Link href="/sessions" passHref>
|
||||
<Link href="/pairings" passHref>
|
||||
<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>
|
||||
</Link>
|
||||
|
||||
@ -34,18 +40,6 @@ export default function Navigation() {
|
||||
/>
|
||||
</a>
|
||||
</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>
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user