fix(housekeeping): retain admin banner shim
This commit is contained in:
1 parent
08358b8aa4
commit
b70bd401d1
2 files changed
+14
-1
No files matched your search
@@ -335,4 +335,13 @@ describe("Content legacy wrappers", () => {
|
||||
).toBe(true);
|
||||
}
|
||||
});
|
||||
|
||||
it("routes the real banner manager through the required compatibility action", () => {
|
||||
const source = readFileSync(
|
||||
"src/app/admin/banners/banners-manager.tsx",
|
||||
"utf8",
|
||||
);
|
||||
expect(source).toContain('from "@/actions/admin-banners"');
|
||||
expect(source).not.toContain('from "@/actions/banners"');
|
||||
});
|
||||
});
|
||||
@@ -2,7 +2,11 @@
|
||||
|
||||
import { Pencil, Plus, Trash2 } from "lucide-react";
|
||||
import { useState } from "react";
|
||||
import { createBanner, deleteBanner, updateBanner } from "@/actions/banners";
|
||||
import {
|
||||
createBanner,
|
||||
deleteBanner,
|
||||
updateBanner,
|
||||
} from "@/actions/admin-banners";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
|
||||
Reference in new issue
Block a user