Skip to content

Commit

Permalink
build: bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Feb 9, 2024
1 parent 507654f commit 0788aed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yearn-finance/web-lib",
"version": "3.0.142",
"version": "3.0.143",
"main": "./dist/index.js",
"types": "./dist/index.d.js",
"files": [
Expand Down
15 changes: 6 additions & 9 deletions src/components/LogoPopover.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {cloneElement, useMemo, useState} from 'react';
import Link from 'next/link';
import {cl} from '@builtbymom/web3/utils';
import {Popover, Transition} from '@headlessui/react';

Expand Down Expand Up @@ -49,10 +48,10 @@ export function LogoPopover(props: {logo: ReactElement}): ReactElement {
)}
/>
<Popover.Button className={'z-20 -mt-4 flex items-center'}>
<Link href={'/'}>
<a href={'/'}>
<span className={'sr-only'}>{'Back to home'}</span>
{props.logo}
</Link>
</a>
</Popover.Button>

<Transition.Root show={isShowing}>
Expand Down Expand Up @@ -80,8 +79,7 @@ export function LogoPopover(props: {logo: ReactElement}): ReactElement {
.filter(({name}): boolean => name !== 'V3 Vaults')
.map(({name, href, icon}): ReactElement => {
return (
<Link
prefetch={false}
<a
key={name}
href={href}
onClick={(): void => set_isShowing(false)}>
Expand All @@ -98,13 +96,12 @@ export function LogoPopover(props: {logo: ReactElement}): ReactElement {
<b className={'text-base'}>{name}</b>
</div>
</div>
</Link>
</a>
);
})}
</div>
<div className={'col-span-2 grid grid-cols-2 gap-2 md:grid-cols-3'}>
<Link
prefetch={false}
<a
key={APPS.V3.name}
href={APPS.V3.href}
className={'col-span-3 row-span-2'}
Expand All @@ -127,7 +124,7 @@ export function LogoPopover(props: {logo: ReactElement}): ReactElement {
</div>
</div>
</div>
</Link>
</a>
</div>
</div>
</div>
Expand Down

0 comments on commit 0788aed

Please sign in to comment.