Skip to content

Commit d9fb7ac

Browse files
authored
fix(envdetector): envDetector components were missing children props declaration (#91)
1 parent 6337a6a commit d9fb7ac

File tree

1 file changed

+2
-2
lines changed
  • packages/insights-common-typescript/src/components/FeatureFlag

1 file changed

+2
-2
lines changed

packages/insights-common-typescript/src/components/FeatureFlag/EnvDetector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface EnvDetectorProps {
88
currentEnvironment: Environment;
99
}
1010

11-
export const EnvDetector: React.FunctionComponent<EnvDetectorProps> = (props) => {
11+
export const EnvDetector: React.FunctionComponent<React.PropsWithChildren<EnvDetectorProps>> = (props) => {
1212
const environment = React.useMemo(
1313
() => Array.isArray(props.onEnvironment) ? props.onEnvironment : [ props.onEnvironment ],
1414
[ props.onEnvironment ]
@@ -28,7 +28,7 @@ interface InsightsBetaDetectorProps extends Omit<EnvDetectorProps, 'currentEnvir
2828
insights: InsightsType;
2929
}
3030

31-
export const InsightsEnvDetector: React.FunctionComponent<InsightsBetaDetectorProps> = (props) => {
31+
export const InsightsEnvDetector: React.FunctionComponent<React.PropsWithChildren<InsightsBetaDetectorProps>> = (props) => {
3232
const currentEnvironment: Environment = React.useMemo(() => {
3333
const isBeta = props.insights.chrome.isBeta();
3434
const env: NonBetaEnvironment = props.insights.chrome.getEnvironment();

0 commit comments

Comments
 (0)