fix: better error handling on client

This commit is contained in:
Gabe Farrell 2025-11-24 20:05:46 -05:00
parent fed2c5b956
commit fdaea6284e
7 changed files with 136 additions and 101 deletions

View file

@ -73,8 +73,14 @@ export default function ActivityGrid({
<p>Loading...</p>
</div>
);
} else if (isError) {
return (
<div className="w-[500px]">
<h2>Activity</h2>
<p className="error">Error: {error.message}</p>
</div>
);
}
if (isError) return <p className="error">Error:{error.message}</p>;
// from https://css-tricks.com/snippets/javascript/lighten-darken-color/
function LightenDarkenColor(hex: string, lum: number) {