Skip to content

Commit b457f55

Browse files
committed
scout: allow ReactNode
1 parent f10a8fd commit b457f55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/lake/src/components/WithCurrentColor.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { createContext, MutableRefObject, ReactElement, useLayoutEffect, useRef } from "react";
1+
import { createContext, MutableRefObject, ReactNode, useLayoutEffect, useRef } from "react";
22
import { StyleSheet, View, ViewProps } from "react-native";
33
import { colors, ColorVariants } from "../constants/design";
44
import { isNotNullish } from "../utils/nullish";
55

66
type Props = {
77
variant?: ColorVariants;
88
style?: ViewProps["style"];
9-
children: ReactElement;
9+
children: ReactNode;
1010
};
1111

1212
const styles = StyleSheet.create({

0 commit comments

Comments
 (0)