feat: update nav menu and page title

This commit is contained in:
TzeYiing authored and Ziinc committed 2023-03-01 19:37:06 +08:00
1 parent 5acd15417d
commit d1439730f1
2 files changed
+11 -22

No files matched your search

@@ -18,25 +18,18 @@ export const generateReportsMenu = (project?: Project): ProductMenuGroup[] => {
},
],
},
...(productReports
? [
{
title: 'API',
items: [
{
name: 'Overview',
key: 'api-overview',
url: `/project/${ref}/reports/api-overview`,
items: [],
},
],
},
]
: []),
{
items: [
...(productReports
? [
{
name: 'API',
key: 'api-overview',
url: `/project/${ref}/reports/api-overview`,
items: [],
},
]
: []),
{
name: 'Database',
key: 'database',
@@ -39,11 +39,7 @@ export const ApiReport: NextPageWithLayout = () => {
return (
<div className="flex flex-col gap-4 px-5 py-6 mx-auto 1xl:px-28 lg:px-16 xl:px-24 2xl:px-32">
<ReportHeader
title="API Performance"
isLoading={report.isLoading}
onRefresh={report.refresh}
/>
<ReportHeader title="API" isLoading={report.isLoading} onRefresh={report.refresh} />
<ReportFilterBar
onRemoveFilters={report.removeFilters}