Skip to content

Instantly share code, notes, and snippets.

@ChristianOConnor
Created March 22, 2023 23:19
Show Gist options
  • Save ChristianOConnor/78c97359434e0a8e446081a064608a91 to your computer and use it in GitHub Desktop.
Save ChristianOConnor/78c97359434e0a8e446081a064608a91 to your computer and use it in GitHub Desktop.
address collector frontend App.tsx
import Layout from './components/Layout';
import './App.css';
import NotSignedInHero from './components/NotSignedInHero';
import { useAccount } from 'wagmi';
import SignedInHero from './components/SignedInHero';
import { EmailContextProvider } from './context/EmailContextManagement';
function App() {
const { isConnected } = useAccount();
if (isConnected) {
<NotSignedInHero />
}
return (
<EmailContextProvider>
<Layout>
<div className='App'>
{isConnected ? <SignedInHero /> : <NotSignedInHero />}
<br />
<br />
</div>
</Layout>
</EmailContextProvider>
)
}
export default App
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment