Skip to content

Commit

Permalink
Merge pull request #611 from commons-stack/fix/link_logo
Browse files Browse the repository at this point in the history
Fix/link_logo
  • Loading branch information
kristoferlund authored Sep 28, 2022
2 parents af8ef50 + b788475 commit 6719723
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/frontend/src/navigation/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Menu } from '@headlessui/react';
import { useRecoilValue, useSetRecoilState } from 'recoil';
import { Link } from 'react-router-dom';
import { SingleSetting } from '@/model/settings';
import { EthAccount } from '@/components/account/EthAccount';
import { AdminOnly } from '@/components/auth/AdminOnly';
Expand All @@ -31,7 +32,7 @@ const NavLogo = (): JSX.Element => {
}, [logoSetting]);

return (
<>
<Link to={'/'}>
{!imageLoaded && !imageLoadError && logoSetting?.valueRealized && (
<div className="inline-block object-cover object-center w-32 h-32 border rounded-full" />
)}
Expand All @@ -52,7 +53,7 @@ const NavLogo = (): JSX.Element => {
style={!imageLoaded ? { display: 'none' } : {}}
/>
)}
</>
</Link>
);
};

Expand Down

0 comments on commit 6719723

Please sign in to comment.