0xFableOrg / 0xFable

A fully on-chain trading card game. There will be elves, wizards & shit. Drama and broken friendships also.
https://twitter.com/0xFableGame
BSD 3-Clause Clear License
105 stars 38 forks source link

Detect offline client #126

Closed Blazing-Mike closed 9 months ago

Blazing-Mike commented 9 months ago

Context (Problem, Motivation, Solution)

Link related issues! https://github.com/0xFableOrg/0xFable/issues/35

Describe Your Changes

Checklist

Testing

I implemented a modal to display when our app is offline. so how did i test this, i tested this by throttling the network in my devtools and also disconneCTING my device from wifi and this modal appears on the index.tsx and play.tsx page. when i toggle back or reconnect, the modal disaappears

Screen Shot 2024-02-24 at 8 24 53 PM

Cc: @norswap