Cleanup Phase 1: Remove unused React imports from safe components (#2702)

Co-authored-by: Michael Neale <michael.neale@gmail.com>
This commit is contained in:
Zane
2025-05-29 09:13:26 -07:00
committed by GitHub
parent bf1c0d51e4
commit 3d5d3cedca
108 changed files with 203 additions and 194 deletions
@@ -30,10 +30,11 @@ const SessionsView: React.FC<SessionsViewProps> = ({ setView }) => {
// Keep the selected session null if there's an error
setSelectedSession(null);
const errorMessage = err instanceof Error ? err.message : String(err);
toastError({
title: 'Failed to load session. The file may be corrupted.',
msg: 'Please try again later.',
traceback: err,
traceback: errorMessage,
});
} finally {
setIsLoadingSession(false);