mirror of
https://github.com/status-im/ens-usernames.git
synced 2025-02-09 00:53:42 +00:00
11 lines
328 B
JavaScript
11 lines
328 B
JavaScript
import React, { Fragment } from 'react';
|
|
import Warning from '../../ui/components/Warning';
|
|
|
|
const Web3Render = ({ ready, children, network }) => (
|
|
<Fragment>
|
|
{ready ? <Fragment>{children}</Fragment> : <Warning>Please connect to Ethereum {network}<br />to continue.</Warning>}
|
|
</Fragment>
|
|
);
|
|
|
|
export default Web3Render;
|