From ffc0e1b1b3f5d810cfd9f5be8de38da4335515dd Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 11 Jun 2021 22:08:11 +0200 Subject: [PATCH] typing fixes --- src/components/atoms/Input.tsx | 7 ++++++- src/components/molecules/Web3Donation/Conversion.test.tsx | 2 +- src/components/molecules/Web3Donation/InputGroup.test.tsx | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/atoms/Input.tsx b/src/components/atoms/Input.tsx index 789af894..0a21d758 100644 --- a/src/components/atoms/Input.tsx +++ b/src/components/atoms/Input.tsx @@ -1,6 +1,11 @@ import React, { ReactElement } from 'react' import { input } from './Input.module.css' -export default function Input({ className, ...props }: any): ReactElement { +export default function Input({ + className, + ...props +}: { + className: string +}): ReactElement { return } diff --git a/src/components/molecules/Web3Donation/Conversion.test.tsx b/src/components/molecules/Web3Donation/Conversion.test.tsx index 981930df..64d92a33 100644 --- a/src/components/molecules/Web3Donation/Conversion.test.tsx +++ b/src/components/molecules/Web3Donation/Conversion.test.tsx @@ -5,7 +5,7 @@ import Conversion from './Conversion' describe('Conversion', () => { it('renders without crashing', async () => { - const { findByText } = render() + render() // const lazyElement = await findByText(/= €/) // expect(lazyElement).toBeInTheDocument() }) diff --git a/src/components/molecules/Web3Donation/InputGroup.test.tsx b/src/components/molecules/Web3Donation/InputGroup.test.tsx index 95c13dac..ed6d4448 100644 --- a/src/components/molecules/Web3Donation/InputGroup.test.tsx +++ b/src/components/molecules/Web3Donation/InputGroup.test.tsx @@ -13,7 +13,7 @@ describe('InputGroup', () => { expect(container.firstChild).toBeInTheDocument() const input = container.querySelector('input') - const button = container.querySelector('button') + // const button = container.querySelector('button') fireEvent.change(input, { target: { value: '3' } }) // fireEvent.click(button) // expect(sendTransaction).toHaveBeenCalled()