Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import { AuthProvider } from "./context/AuthContext";
import { Toaster } from "react-hot-toast"; // <-- import do Toaster
import type { JSX } from "react";
import StaffList from "./pages/Staff/StaffList.tsx";
import AdopterRegister from "./pages/Adopter/AdopterRegister.tsx";
import AdopterList from "./pages/Adopter/AdopterList.tsx";


const ProtectedLayout = ({ children }: { children: JSX.Element }) => (
<div className="flex h-screen bg-gray-100">
Expand Down Expand Up @@ -89,6 +92,26 @@ export default function App() {
</PrivateRoute>
}
/>
<Route
path="/Adopter"
element={
<PrivateRoute>
<ProtectedLayout>
<AdopterRegister />
</ProtectedLayout>
</PrivateRoute>
}
/>
<Route
path="/AdopterList"
element={
<PrivateRoute>
<ProtectedLayout>
<AdopterList />
</ProtectedLayout>
</PrivateRoute>
}
/>
<Route
path="/vaccines"
element={
Expand Down
2 changes: 2 additions & 0 deletions src/Components/Sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
X,
LogOut,
PawPrint,
HeartHandshake,
} from "lucide-react";
import { useEffect, useState } from "react";
import { useNavigate } from "react-router-dom";
Expand All @@ -21,6 +22,7 @@ function SideBar() {
{ id: "dashboard", label: "Dashboard", icon: LayoutDashboard, href: "/dashboard" },
{ id: "animals", label: "Animais", icon: PawPrint, href: "/animals" },
{ id: "staff", label: "Funcionários", icon: Briefcase, href: "/staff" },
{ id: "adopter", label: "Adotantes", icon: HeartHandshake, href: "/adopter" },
{ id: "vaccines", label: "Vacinas", icon: Archive, href: "/vaccines" },
{ id: "adoptions", label: "Adoções", icon: FileText, href: "/adoptions" },
];
Expand Down
Binary file added src/assets/images/avatars/female.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/avatars/male.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/avatars/other.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
542 changes: 542 additions & 0 deletions src/pages/Adopter/AdopterList.tsx

Large diffs are not rendered by default.

Loading