From 3dd1047b085fa7795f322c5829f39208465bff13 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 29 Mar 2022 09:58:06 -0300 Subject: added react eslint and fix most of the warns --- packages/taler-wallet-webextension/src/mui/input/FormHelperText.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/taler-wallet-webextension/src/mui/input/FormHelperText.tsx') diff --git a/packages/taler-wallet-webextension/src/mui/input/FormHelperText.tsx b/packages/taler-wallet-webextension/src/mui/input/FormHelperText.tsx index da10eec11..eeb9e52c0 100644 --- a/packages/taler-wallet-webextension/src/mui/input/FormHelperText.tsx +++ b/packages/taler-wallet-webextension/src/mui/input/FormHelperText.tsx @@ -1,5 +1,5 @@ import { css } from "@linaria/core"; -import { ComponentChildren, h } from "preact"; +import { ComponentChildren, h, VNode } from "preact"; // eslint-disable-next-line import/extensions import { theme } from "../style"; import { useFormControl } from "./FormControl.js"; @@ -35,7 +35,7 @@ interface Props { required?: boolean; children: ComponentChildren; } -export function FormHelperText({ children, ...props }: Props) { +export function FormHelperText({ children, ...props }: Props): VNode { const fcs = useFormControl(props); const contained = fcs.variant === "filled" || fcs.variant === "outlined"; return ( -- cgit v1.2.3