| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| Footer.js | ||
| HeaderBar.js | ||
| NoticeModal.js | ||
| PageLayout.js | ||
| SetupCheck.js | ||
| SiderBar.js |
Previously, the notice modal would automatically show every day even when the notice content was empty, causing unnecessary user interruption. This commit modifies the logic to: - Check notice content before showing the modal - Only display the modal when notice content exists and is not empty - Add proper error handling to prevent modal showing on API failures - Improve user experience by avoiding empty notice interruptions Changes: - Modified useEffect in Home component to fetch notice content first - Added API call to /api/notice before setting noticeVisible state - Added try-catch block for graceful error handling - Only show modal when notice data is truthy and non-empty after trimming
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| Footer.js | Loading commit data... | |
| HeaderBar.js | Loading commit data... | |
| NoticeModal.js | Loading commit data... | |
| PageLayout.js | Loading commit data... | |
| SetupCheck.js | Loading commit data... | |
| SiderBar.js | Loading commit data... |