Skip to content

Commit

Permalink
🚀 Improve errors appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniovizuete committed Oct 8, 2022
1 parent 4a72883 commit 2eaf742
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/components/Result/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ type Params = {

export default function Result({ result, error, loading }: Params) {
if (error) {
return <NonIdealState title="Error" description={error} icon="error" />;
return (
<div className="overflow-auto h-full flex flex-col gap-5 p-5">
<NonIdealState
className="w-full h-fit"
title="Error"
layout={"horizontal"}
icon="error"
/>
<div className="font-mono text-red-700">{error}</div>
</div>
);
}

if (loading) {
Expand Down

0 comments on commit 2eaf742

Please sign in to comment.