Skip to content

Commit

Permalink
fixed rendering issues with custom toaster
Browse files Browse the repository at this point in the history
  • Loading branch information
amorey committed Jul 16, 2024
1 parent c12b0f2 commit dd2c22e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/_root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const CustomToaster = () => {
};

return (
<div className="fixed bottom-[28px] right-[5px] p-2 bg-red-100 border-2 border-red-200">
<div className="fixed bottom-[28px] right-[5px] p-2 bg-red-100 border-2 border-red-200 z-10">
<button
type="button"
className="absolute top-[-10px] left-[-10px] bg-red-100 rounded-full cursor-pointer"
Expand Down Expand Up @@ -85,7 +85,7 @@ const CustomToaster = () => {
</div>
</Modal.Title>
<div className="text-sm space-y-4">
{toasts.map((toast) => <QueryError toast={toast} />)}
{toasts.map((toast, i) => <QueryError key={i} toast={toast} />)}

Check failure on line 88 in frontend/src/pages/_root.tsx

View workflow job for this annotation

GitHub Actions / frontend-lint

Do not use Array index in keys
</div>
</Modal>
</div>
Expand Down

0 comments on commit dd2c22e

Please sign in to comment.