Changes in frontend/src/pages/Nav.tsx [b70fbeb:4e5cf92]
- File:
-
- 1 edited
-
frontend/src/pages/Nav.tsx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/pages/Nav.tsx
rb70fbeb r4e5cf92 1 1 import { Link } from "react-router-dom"; 2 import { toast } from "react-toastify";3 2 import axiosInstance, { baseURL } from "../api/axiosInstance"; 4 3 import Logo from "../assets/logo-finkwave.png"; … … 13 12 await axiosInstance.post("/auth/logout"); 14 13 setUser(undefined); 15 toast.success("Logout successful!");16 14 } catch (error) { 17 15 console.error("Logout failed:", error); 18 toast.error("Logout failed!");19 16 } 20 17 };
Note:
See TracChangeset
for help on using the changeset viewer.
