easierdata / web3-geo-dashboard

1 stars 0 forks source link

Try Mapbox set popup functionality to remove setTimeout in map component #35

Closed jsolly closed 1 year ago

jsolly commented 1 year ago

Context

Basically we are trying to remove this code from the map component

setTimeout(() => {
    const connectButton = document.querySelector(
        '.MetamaskContainer .connectButton'
    ) as HTMLButtonElement;
    if (connectButton) {
        connectButton.addEventListener('click', connectWallet);
    }
});

Assigning to @matthewnanas as per our conversation. Everything is in staging now.

I am not sure if it's actually called 'set popup' Please change issue title if I got that wrong.

jsolly commented 1 year ago

This is resolved with the attached PR.

Thanks @matthewnanas !