mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
chore: remove api report feature flag
This commit is contained in:
1 parent
e1df740c44
commit
4acc3a054d
1 file changed
+7
-13
@@ -1,10 +1,8 @@
|
||||
import { Project } from 'types'
|
||||
import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
|
||||
import { useFlag } from 'hooks'
|
||||
|
||||
export const generateReportsMenu = (project?: Project): ProductMenuGroup[] => {
|
||||
const ref = project?.ref ?? 'default'
|
||||
const productReports = useFlag('productReports')
|
||||
|
||||
return [
|
||||
{
|
||||
@@ -20,17 +18,13 @@ export const generateReportsMenu = (project?: Project): ProductMenuGroup[] => {
|
||||
},
|
||||
{
|
||||
items: [
|
||||
...(productReports
|
||||
? [
|
||||
{
|
||||
name: 'API',
|
||||
key: 'api-overview',
|
||||
url: `/project/${ref}/reports/api-overview`,
|
||||
items: [],
|
||||
label: 'NEW',
|
||||
},
|
||||
]
|
||||
: []),
|
||||
{
|
||||
name: 'API',
|
||||
key: 'api-overview',
|
||||
url: `/project/${ref}/reports/api-overview`,
|
||||
items: [],
|
||||
label: 'NEW',
|
||||
},
|
||||
{
|
||||
name: 'Database',
|
||||
key: 'database',
|
||||
|
||||
Reference in new issue
Block a user