-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
PE-7702: adjust UI if app is loaded prior to epoch zero start #170
Conversation
kunstmusik
commented
Feb 17, 2025
- show "Awaiting first epoch" in various places
- calculates next epoch according to epochZeroStartTimestamp from epochSettings
- Disables snitch row on gateway details page
Visit the preview URL for this PR (updated for commit 541c68f): https://ar-io-network-portal-a40ee--pr170-pe-7702-adjust-ui-fo-jbliwu4f.web.app (expires Tue, 04 Mar 2025 19:52:45 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 7abfae09c4446982a71cbb94b0cbf4688377a111 |
src/components/Header.tsx
Outdated
|
||
const [currentEpochLabel, setCurrentEpochLabel] = useState<string>(); | ||
|
||
useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could probably be a useMemo/Callback instead of useEffect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, useMemo makes sense here, modified it