mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
@@ -407,7 +407,7 @@ export default function AddLibraryUnit() {
|
||||
};
|
||||
|
||||
const handleBack = () => {
|
||||
if (step === 0) navigate(-1);
|
||||
if (step === 0) navigate("/admin/units");
|
||||
else setStep((s) => s - 1);
|
||||
};
|
||||
|
||||
@@ -446,7 +446,7 @@ export default function AddLibraryUnit() {
|
||||
<div className="w-full max-w-3xl mx-auto space-y-6">
|
||||
|
||||
<div className="flex items-center gap-3">
|
||||
<Button type="button" variant="ghost" size="icon" onClick={() => navigate(-1)}>
|
||||
<Button type="button" variant="ghost" size="icon" onClick={() => navigate("/admin/units")}>
|
||||
<ArrowLeft className="h-4 w-4" />
|
||||
</Button>
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user