From 0a004930d3d001b6214f3843466808fa9125b9a9 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Mon, 28 Nov 2022 21:38:36 +0800 Subject: [PATCH] type: fix demo types error (#39059) --- components/segmented/demo/controlled-two.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/segmented/demo/controlled-two.tsx b/components/segmented/demo/controlled-two.tsx index 78dd668ea4..763e4f994c 100644 --- a/components/segmented/demo/controlled-two.tsx +++ b/components/segmented/demo/controlled-two.tsx @@ -1,13 +1,13 @@ import React, { useState } from 'react'; import { Segmented } from 'antd'; -const Demo = () => { - const [foo, setFoo] = useState('AND'); +const Demo: React.FC = () => { + const [foo, setFoo] = useState('AND'); return ( <>    - setFoo(value)} /> + ); };