Skip to content

Commit 187cea3

Browse files
committed
feat(webapp): add Coupon Deals sub-tab to Back office
1 parent b013135 commit 187cea3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

apps/webapp/app/routes/admin.back-office.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Outlet } from "@remix-run/react";
22
import type { LoaderFunctionArgs } from "@remix-run/server-runtime";
33
import { redirect, typedjson } from "remix-typedjson";
4+
import { Tabs } from "~/components/primitives/Tabs";
45
import { requireUser } from "~/services/session.server";
56

67
export async function loader({ request }: LoaderFunctionArgs) {
@@ -17,6 +18,17 @@ export default function BackOfficeLayout() {
1718
aria-labelledby="primary-heading"
1819
className="flex h-full min-w-0 flex-1 flex-col overflow-y-auto px-4 pb-4 lg:order-last"
1920
>
21+
<div className="flex items-center pt-2">
22+
<Tabs
23+
tabs={[
24+
{
25+
label: "Coupon Deals",
26+
to: "/admin/back-office/coupons",
27+
},
28+
]}
29+
layoutId="admin-back-office"
30+
/>
31+
</div>
2032
<Outlet />
2133
</main>
2234
);

0 commit comments

Comments
 (0)