OneSignalDevelopers / ngosi

Share your slides with a QR code
https://ngosi.io
MIT License
9 stars 5 forks source link

Displaying the empty state when there are no presos #66

Closed Yohanan-Negash closed 2 years ago

Yohanan-Negash commented 2 years ago

Fixes #36

Solution

I added a simple conditional to the presos page to check if a preso exists.

Testing

  1. Start Supabase CLI, supabase start
  2. Start the dev server, yarn dev
  3. Navigate to the presos page
  4. Observe that there is a text displayed when there are no presos

Resources

Before adding conditional
Screen Shot 2022-01-31 at 10 50 12 PM
After adding conditional
Screen Shot 2022-01-31 at 10 50 50 PM
vercel[bot] commented 2 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/onesignaldevs/ngosi/3gDrkJVr8pFP9orCzXW8vPQAhJiA
✅ Preview: https://ngosi-git-ui-issue-fix-onesignaldevs.vercel.app