diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-29 09:58:06 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-29 10:04:33 -0300 |
commit | 3dd1047b085fa7795f322c5829f39208465bff13 (patch) | |
tree | 19340ca9420466e7059849dbf7013901733c0fde /packages/taler-wallet-webextension/src/mui/TextField.stories.tsx | |
parent | cb18b9813e5df6e315dfb1827f5f7cf304977390 (diff) | |
download | wallet-core-3dd1047b085fa7795f322c5829f39208465bff13.tar.xz |
added react eslint and fix most of the warns
Diffstat (limited to 'packages/taler-wallet-webextension/src/mui/TextField.stories.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/mui/TextField.stories.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/taler-wallet-webextension/src/mui/TextField.stories.tsx b/packages/taler-wallet-webextension/src/mui/TextField.stories.tsx index bc8505454..85550aabf 100644 --- a/packages/taler-wallet-webextension/src/mui/TextField.stories.tsx +++ b/packages/taler-wallet-webextension/src/mui/TextField.stories.tsx @@ -20,7 +20,7 @@ */ import { styled } from "@linaria/react"; -import { Fragment, h } from "preact"; +import { h, VNode } from "preact"; import { useState } from "preact/hooks"; import { TextField, Props } from "./TextField.js"; @@ -37,7 +37,7 @@ const Container = styled.div` } `; -const BasicExample = (variant: Props["variant"]) => { +const BasicExample = (variant: Props["variant"]): VNode => { const [value, onChange] = useState(""); return ( <Container> @@ -80,11 +80,11 @@ const BasicExample = (variant: Props["variant"]) => { ); }; -export const Standard = () => BasicExample("standard"); -export const Filled = () => BasicExample("filled"); -export const Outlined = () => BasicExample("outlined"); +export const Standard = (): VNode => BasicExample("standard"); +export const Filled = (): VNode => BasicExample("filled"); +export const Outlined = (): VNode => BasicExample("outlined"); -export const Color = () => ( +export const Color = (): VNode => ( <Container> <TextField variant="standard" |