From 2f008e60e7e08a7bfe4deb641fe5325d3ebb5a25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Fri, 29 Jan 2021 20:24:48 +0900 Subject: [PATCH] types: added segment props --- components/Segment.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/Segment.tsx b/components/Segment.tsx index 7721d85..8f064d7 100644 --- a/components/Segment.tsx +++ b/components/Segment.tsx @@ -1,4 +1,4 @@ -const Segment = ({ children }): JSX.Element => { +const Segment = ({ children }:SegmentProps): JSX.Element => { return (
{children} @@ -6,4 +6,8 @@ const Segment = ({ children }): JSX.Element => { ) } +interface SegmentProps { + children: JSX.Element | JSX.Element[] +} + export default Segment