How to use the decentraland-dapps/dist/lib/utils.isMobile function in decentraland-dapps

To help you get started, we’ve selected a few decentraland-dapps 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 decentraland / agora / webapp / src / components / PollDetailPage / CastYourVote / CastYourVote.tsx View on Github external
render() {
    const { poll, isConnected } = this.props

    return isFinished(poll) && isMobile() ? null : (
      <div>
        {!isFinished(poll) &amp;&amp; isConnected ? (
          
            <button>{t('poll_detail_page.cast_vote')}</button>
          
        ) : (
          <button disabled="">
            {t('poll_detail_page.cast_vote')}
          </button>
        )}
      </div>
    )
  }
}