Created
March 22, 2023 23:19
-
-
Save ChristianOConnor/78c97359434e0a8e446081a064608a91 to your computer and use it in GitHub Desktop.
address collector frontend App.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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