fix: made playground page use same layout as other pages (#25216)

* fix: made playground page use same layout as other pages

* update: added feature key

* Change link display from table to list format

Refactor page layout to use a list instead of a table for links.

---------

Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
spandevandAnik Dhabal Babu authored and GitHub committed 2025-12-01 09:33:46 +00:00
1 parent 3cf7266048
commit 0776657faf
2 files changed
+34 -16

No files matched your search

@@ -1,5 +1,8 @@
import { _generateMetadata, getTranslate } from "app/_utils";
import Link from "next/link";
import SettingsHeader from "@calcom/features/settings/appDir/SettingsHeader";
const LINKS = [
{
title: "Routing Funnel",
@@ -15,20 +18,32 @@ const LINKS = [
},
];
export default function Page() {
return (
<div>
<h1 className="text-3xl font-bold">Playground</h1>
<ul className="mt-8">
{LINKS.map((link) => (
<li key={link.title}>
<Link href={link.href} className="list-item list-disc font-medium underline">
{link.title} →
</Link>
</li>
))}
</ul>
</div>
export const generateMetadata = async () =>
await _generateMetadata(
(t) => t("playground"),
(t) => t("admin_playground_description"),
undefined,
undefined,
"/settings/admin/playground"
);
}
const Page = async () => {
const t = await getTranslate();
return (
<SettingsHeader title={t("playground")} description={t("admin_playground_description")}>
<div>
<ul className="mt-8">
{LINKS.map((link) => (
<li key={link.title}>
<Link href={link.href} className="list-item list-disc font-medium underline">
{link.title} →
</Link>
</li>
))}
</ul>
</div>
</SettingsHeader>
);
};
export default Page;