fix: corrected navigation tags so they are loaded correctly, added tag for account selector (#246)
This commit is contained in:
parent
748547b707
commit
7193ee7359
@ -96,6 +96,7 @@ url: `/pairings`
|
|||||||
url: `/`
|
url: `/`
|
||||||
| Key | Description |
|
| Key | Description |
|
||||||
| ----------- | ----------- |
|
| ----------- | ----------- |
|
||||||
|
| `account-picker` | Account drop down selector|
|
||||||
| `chain-card-${chain id}` | Chain card by chain id |
|
| `chain-card-${chain id}` | Chain card by chain id |
|
||||||
| `chain-switch-button-${chain id}` | Chain switch button |
|
| `chain-switch-button-${chain id}` | Chain switch button |
|
||||||
| `chain-switch-button-${chain id}` | Chain copy button |
|
| `chain-switch-button-${chain id}` | Chain copy button |
|
@ -26,7 +26,7 @@ export default function AccountPicker() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<select value={account} onChange={e => onSelect(e.currentTarget.value)} aria-label="addresses">
|
<select value={account} onChange={e => onSelect(e.currentTarget.value)} aria-label="addresses" data-testid="account-picker">
|
||||||
<option value={0}>Account 1</option>
|
<option value={0}>Account 1</option>
|
||||||
<option value={1}>Account 2</option>
|
<option value={1}>Account 2</option>
|
||||||
</select>
|
</select>
|
||||||
|
@ -5,20 +5,20 @@ import Link from 'next/link'
|
|||||||
export default function Navigation() {
|
export default function Navigation() {
|
||||||
return (
|
return (
|
||||||
<Row justify="space-between" align="center">
|
<Row justify="space-between" align="center">
|
||||||
<Link href="/" passHref data-testid="accounts">
|
<Link href="/" passHref>
|
||||||
<a className="navLink">
|
<a className="navLink" data-testid="accounts">
|
||||||
<Image alt="accounts icon" src="/icons/accounts-icon.svg" width={27} height={27} />
|
<Image alt="accounts icon" src="/icons/accounts-icon.svg" width={27} height={27} />
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link href="/sessions" passHref data-testid="sessions">
|
<Link href="/sessions" passHref>
|
||||||
<a className="navLink">
|
<a className="navLink" data-testid="sessions">
|
||||||
<Image alt="sessions icon" src="/icons/sessions-icon.svg" width={27} height={27} />
|
<Image alt="sessions icon" src="/icons/sessions-icon.svg" width={27} height={27} />
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link href="/walletconnect" passHref data-testid="wc-connect">
|
<Link href="/walletconnect" passHref>
|
||||||
<a className="navLink">
|
<a className="navLink" data-testid="wc-connect">
|
||||||
<Avatar
|
<Avatar
|
||||||
size="lg"
|
size="lg"
|
||||||
css={{ cursor: 'pointer' }}
|
css={{ cursor: 'pointer' }}
|
||||||
@ -35,14 +35,14 @@ export default function Navigation() {
|
|||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link href="/pairings" passHref data-testid="pairings">
|
<Link href="/pairings" passHref>
|
||||||
<a className="navLink">
|
<a className="navLink" data-testid="pairings">
|
||||||
<Image alt="pairings icon" src="/icons/pairings-icon.svg" width={25} height={25} />
|
<Image alt="pairings icon" src="/icons/pairings-icon.svg" width={25} height={25} />
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
<Link href="/settings" passHref data-testid="settings">
|
<Link href="/settings" passHref>
|
||||||
<a className="navLink">
|
<a className="navLink" data-testid="settings">
|
||||||
<Image alt="settings icon" src="/icons/settings-icon.svg" width={27} height={27} />
|
<Image alt="settings icon" src="/icons/settings-icon.svg" width={27} height={27} />
|
||||||
</a>
|
</a>
|
||||||
</Link>
|
</Link>
|
||||||
|
Loading…
Reference in New Issue
Block a user