Skip to content

Commit

Permalink
fix connect wallet button (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
torztomasz authored Jan 30, 2024
1 parent c9b4f50 commit 8e24d74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
1 change: 0 additions & 1 deletion packages/frontend/src/scripts/metamask.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export function initMetamask() {

const connectButton = $.maybe<HTMLButtonElement>('#connect-with-metamask')
const instanceChainId = getInstanceChainId()

if (!provider) {
connectButton?.addEventListener('click', () => {
window.open('https://metamask.io/download/')
Expand Down
15 changes: 5 additions & 10 deletions packages/frontend/src/view/components/page/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,12 @@ export function Navbar({
/>
)}
{!user && (
<>
<Button id="connect-with-metamask" className="sm:hidden">
Connect
</Button>
<Button
id="connect-with-metamask"
className="hidden whitespace-nowrap sm:block"
>
<Button id="connect-with-metamask">
<span className="sm:hidden">Connect</span>
<span className="hidden whitespace-nowrap sm:block">
Connect wallet
</Button>
</>
</span>
</Button>
)}
{user && (
<a
Expand Down

0 comments on commit 8e24d74

Please sign in to comment.