https://dev.kronoz.win/r/marzneshin.git
| 1 |
4708fcb |
Dawsh |
2y ago |
import { createFileRoute, useNavigate } from "@tanstack/react-router"; |
| 2 |
4708fcb |
Dawsh |
2y ago |
import { AdminsMutationDialog } from "@marzneshin/features/admins"; |
| 3 |
4708fcb |
Dawsh |
2y ago |
|
| 4 |
4708fcb |
Dawsh |
2y ago |
const AdminCreate = () => { |
| 5 |
4708fcb |
Dawsh |
2y ago |
const navigate = useNavigate({ from: "/admins/create" }); |
| 6 |
4708fcb |
Dawsh |
2y ago |
return ( |
| 7 |
4708fcb |
Dawsh |
2y ago |
<AdminsMutationDialog |
| 8 |
d42c6e6 |
Mardin |
2y ago |
entity={null} |
| 9 |
4708fcb |
Dawsh |
2y ago |
onClose={() => navigate({ to: "/admins" })} |
| 10 |
4708fcb |
Dawsh |
2y ago |
/> |
| 11 |
4708fcb |
Dawsh |
2y ago |
); |
| 12 |
4708fcb |
Dawsh |
2y ago |
} |
| 13 |
4708fcb |
Dawsh |
2y ago |
|
| 14 |
4708fcb |
Dawsh |
2y ago |
export const Route = createFileRoute("/_dashboard/admins/create")({ |
| 15 |
4708fcb |
Dawsh |
2y ago |
component: AdminCreate, |
| 16 |
4708fcb |
Dawsh |
2y ago |
}); |