diff --git a/src/views/FeatureFlagsView.tsx b/src/views/FeatureFlagsView.tsx index ee592b3..02217fa 100644 --- a/src/views/FeatureFlagsView.tsx +++ b/src/views/FeatureFlagsView.tsx @@ -4,7 +4,6 @@ import { useConfig, useTheme } from '@payloadcms/ui' -import { DefaultTemplate } from '@payloadcms/next/templates' interface FeatureFlag { id: string @@ -25,17 +24,10 @@ interface FeatureFlag { } interface FeatureFlagsViewProps { - i18n?: any - locale?: any - params?: any - payload?: any - permissions?: any - searchParams?: any - user?: any - visibleEntities?: any + [key: string]: any } -const FeatureFlagsViewComponent = (props: FeatureFlagsViewProps) => { +const FeatureFlagsViewComponent = (props: FeatureFlagsViewProps = {}) => { const { config } = useConfig() const { theme } = useTheme() const [flags, setFlags] = useState([]) @@ -623,20 +615,8 @@ const FeatureFlagsViewComponent = (props: FeatureFlagsViewProps) => { ) - return ( - - - - ) + // Return the content directly - Payload handles the admin layout for custom views + return } export const FeatureFlagsView = memo(FeatureFlagsViewComponent)