Skip to content

Commit 54dfd1b

Browse files
refactor(dashboards): give DashboardFeatureGate a props interface
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S6aTRnkiu7PxYZPNPXYEMV
1 parent c2207cf commit 54dfd1b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/sim/components/dashboards/dashboard-feature-gate.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
import type { ReactNode } from 'react'
44
import { useFeatureFlag } from '@/app/workspace/[workspaceId]/providers/feature-flags-provider'
55

6-
export function DashboardFeatureGate({ children }: { children: ReactNode }) {
6+
interface DashboardFeatureGateProps {
7+
children: ReactNode
8+
}
9+
10+
export function DashboardFeatureGate({ children }: DashboardFeatureGateProps) {
711
const enabled = useFeatureFlag('dashboards')
812
return enabled ? (
913
children

0 commit comments

Comments
 (0)