From 329ed71fb6108941c27521ff3619bcb871b91f85 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Wed, 16 Jun 2021 11:05:19 +1000 Subject: [PATCH] Remove unused component --- examples/eth-dm/src/AddressInput.tsx | 31 ---------------------------- 1 file changed, 31 deletions(-) delete mode 100644 examples/eth-dm/src/AddressInput.tsx diff --git a/examples/eth-dm/src/AddressInput.tsx b/examples/eth-dm/src/AddressInput.tsx deleted file mode 100644 index 775ff218f8..0000000000 --- a/examples/eth-dm/src/AddressInput.tsx +++ /dev/null @@ -1,31 +0,0 @@ -import { useState } from 'react'; - -export interface Props { - sendMessage: (message: string) => void; -} -function MessageInput(props: Props) { - const [inputText, setInputText] = useState(''); - - const onChange = (event: React.ChangeEvent) => { - setInputText(event.target.value); - }; - - const onKeyDown = (event: { key: string }) => { - if (event.key === 'Enter') { - props.sendMessage(inputText); - setInputText(''); - } - }; - - return ( -
- -
- ); -}