Skip to content

Commit

Permalink
add: info when offline
Browse files Browse the repository at this point in the history
  • Loading branch information
EasonC13 committed Jul 26, 2023
1 parent 53654d7 commit 0df43b9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/PreviousCoinRaffles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ import { getNetwork } from '../lib/getNetwork';
import { updateCoinMetadatas } from '../lib/updateCoinMetadatas';
import Button from '@/components/buttons/Button';
import { ImSpinner2 } from 'react-icons/im';
import { ConnectToWallet } from './ConnectToWallet';

export function PreviousCoinRaffles() {
const walletKit: any = useWalletKit();
const [raffles, setRaffles] = React.useState([]);
Expand Down Expand Up @@ -353,7 +355,14 @@ export function PreviousCoinRaffles() {
</div>
);
}
return <div>Loading</div>;
return (
<div className='mt-3 text-center'>
<h1>Connect Wallet to start using Bucket Raffle System.</h1>
<div className='mt-3'>
<ConnectToWallet></ConnectToWallet>
</div>
</div>
);
}
function parseTimestamp(timestamp: number) {
const date = new Date(timestamp);
Expand Down

0 comments on commit 0df43b9

Please sign in to comment.