How to configure system to load a blank homepage
Create custom component SimpleDApp.tsx
SimpleDApp.tsx
This component uses these components:
Connect button
Social logins
Main banner
TitleCollection (replaced mint button to Main banner)
Remove Connect button from Header
Changed logic in useConnectUser hook and TitleCollection component
useConnectUser
TitleCollection
Improving styles
Adding specific conditions to display the Connect Button or Main banner
In App.tsx component I changed main url '/' . In RairDapp it uses SimpleDApp.tsx now. And because of this we see another main component
App.tsx
'/'
In order for authorization using social logins to work, you need to add the following variables to the env file:
VITE_BASE_MAINNET_ALCHEMY_KEY
VITE_BASE_MAINNET_GAS_POLICY
In our case, this is the Base blockchain: VITE_BASE_MAINNET_ALCHEMY_KEY=xxx VITE_BASE_MAINNET_GAS_POLICY=xxx
VITE_BASE_MAINNET_ALCHEMY_KEY=xxx
VITE_BASE_MAINNET_GAS_POLICY=xxx
Last updated 1 year ago
Was this helpful?