summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/mui/input/FormControl.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/mui/input/FormControl.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/mui/input/FormControl.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/mui/input/FormControl.tsx b/packages/taler-wallet-webextension/src/mui/input/FormControl.tsx
index d4fa0368e..8860ce20d 100644
--- a/packages/taler-wallet-webextension/src/mui/input/FormControl.tsx
+++ b/packages/taler-wallet-webextension/src/mui/input/FormControl.tsx
@@ -1,5 +1,5 @@
import { css } from "@linaria/core";
-import { ComponentChildren, createContext, h } from "preact";
+import { ComponentChildren, createContext, h, VNode } from "preact";
import { useContext, useState } from "preact/hooks";
// eslint-disable-next-line import/extensions
import { Colors } from "../style";
@@ -58,7 +58,7 @@ export function FormControl({
size = "medium",
variant = "standard",
children,
-}: Partial<Props>) {
+}: Partial<Props>): VNode {
const [filled, setFilled] = useState(false);
const [focusedState, setFocused] = useState(false);
const focused =
@@ -141,7 +141,7 @@ const defaultContextValue: FCCProps = {
variant: "outlined",
};
-function withoutUndefinedProperties(obj: any) {
+function withoutUndefinedProperties(obj: any): any {
return Object.keys(obj).reduce((acc, key) => {
const _acc: any = acc;
if (obj[key] !== undefined) _acc[key] = obj[key];