How to use the arc.gotoReadonly function in arc

To help you get started, we’ve selected a few arc examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github daostack / alchemy / src / layouts / AppContainer.tsx View on Github external
(newAddress: Address | null): void => {
        // eslint-disable-next-line no-console
        console.log(`new account: ${newAddress}`);
        this.props.setCurrentAccount(newAddress);
        if (newAddress) {
          cacheWeb3Info(newAddress);
        } else {
          uncacheWeb3Info();
          gotoReadonly(this.props.showNotification);
        }
      });
  }
github daostack / alchemy / src / layouts / Header.tsx View on Github external
public handleClickLogout = async (_event: any): Promise => {
    await gotoReadonly(this.props.showNotification);
  }