From 945b96f8f7b8b9d0db67bff5eda803bf97516bc7 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 20 Dec 2023 14:01:44 +0100 Subject: [PATCH] remove React.FC types --- apps/doc-gen/src/app/views/ErrorView.tsx | 2 +- apps/etherscan/src/app/components/HeaderWithSettings.tsx | 8 ++++---- apps/etherscan/src/app/components/SubmitButton.tsx | 2 +- apps/etherscan/src/app/layouts/Default.tsx | 2 +- apps/etherscan/src/app/views/CaptureKeyView.tsx | 2 +- apps/etherscan/src/app/views/ErrorView.tsx | 2 +- apps/etherscan/src/app/views/HomeView.tsx | 2 +- apps/etherscan/src/app/views/ReceiptsView.tsx | 4 ++-- apps/etherscan/src/app/views/VerifyView.tsx | 2 +- apps/remix-ide-e2e/src/local-plugin/src/app/logger.tsx | 2 +- apps/vyper/src/app/app.tsx | 2 +- 11 files changed, 15 insertions(+), 15 deletions(-) diff --git a/apps/doc-gen/src/app/views/ErrorView.tsx b/apps/doc-gen/src/app/views/ErrorView.tsx index 09af1ea547..38e6a57cfd 100644 --- a/apps/doc-gen/src/app/views/ErrorView.tsx +++ b/apps/doc-gen/src/app/views/ErrorView.tsx @@ -1,6 +1,6 @@ import React from 'react' -export const ErrorView: React.FC = () => { +export const ErrorView = () => { return (
= ({from}: IconProps) => { +const HomeIcon = ({from}: IconProps) => { return ( = ({from}: IconProps) => { ) } -const ReceiptsIcon: React.FC = ({from}: IconProps) => { +const ReceiptsIcon = ({from}: IconProps) => { return ( = ({from}: IconProps) => { ) } -const SettingsIcon: React.FC = ({from}: IconProps) => { +const SettingsIcon = ({from}: IconProps) => { return ( = ({from}: IconProps) => { ) } -export const HeaderWithSettings: React.FC = ({title = '', from}) => { +export const HeaderWithSettings = ({title = '', from}) => { return (
{title}
diff --git a/apps/etherscan/src/app/components/SubmitButton.tsx b/apps/etherscan/src/app/components/SubmitButton.tsx index 080fafc708..9f4bed6200 100644 --- a/apps/etherscan/src/app/components/SubmitButton.tsx +++ b/apps/etherscan/src/app/components/SubmitButton.tsx @@ -8,7 +8,7 @@ interface Props { disable?: boolean } -export const SubmitButton: React.FC = ({text, dataId, isSubmitting = false, disable = true}) => { +export const SubmitButton = ({text, dataId, isSubmitting = false, disable = true}) => { return (