Skip to content

Commit b836db6

Browse files
Copilotrajbos
andcommitted
Fix toast notifications by adding Toaster component to App
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent 35b360f commit b836db6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/App.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useState, useCallback, useRef, DragEvent } from "react";
22
import { Upload, GithubLogo } from "@phosphor-icons/react";
3-
import { toast } from "sonner";
3+
import { toast, Toaster } from "sonner";
44
import {
55
LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer,
66
BarChart, Bar, Cell
@@ -542,6 +542,7 @@ function App() {
542542
</div>
543543
</div>
544544
)}
545+
<Toaster position="top-right" />
545546
</div>
546547
);
547548
}

0 commit comments

Comments
 (0)