aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/mui/TextField.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-03-28 23:41:07 -0300
committerSebastian <sebasjm@gmail.com>2022-03-28 23:41:07 -0300
commite2651bdff2eac072ed2394f69e2cf59a8c53cdba (patch)
tree77dc6629a223fcf57d8b6547dde0461940e0244a /packages/taler-wallet-webextension/src/mui/TextField.tsx
parentf5d194dfc61ae0d358a27b994861dc20b83cf98e (diff)
downloadwallet-core-e2651bdff2eac072ed2394f69e2cf59a8c53cdba.tar.gz
wallet-core-e2651bdff2eac072ed2394f69e2cf59a8c53cdba.tar.bz2
wallet-core-e2651bdff2eac072ed2394f69e2cf59a8c53cdba.zip
add extension to every import
Diffstat (limited to 'packages/taler-wallet-webextension/src/mui/TextField.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/mui/TextField.tsx43
1 files changed, 22 insertions, 21 deletions
diff --git a/packages/taler-wallet-webextension/src/mui/TextField.tsx b/packages/taler-wallet-webextension/src/mui/TextField.tsx
index ada8d5d85..c79c21ced 100644
--- a/packages/taler-wallet-webextension/src/mui/TextField.tsx
+++ b/packages/taler-wallet-webextension/src/mui/TextField.tsx
@@ -1,13 +1,14 @@
import { ComponentChildren, h, VNode } from "preact";
-import { FormControl } from "./input/FormControl";
-import { FormHelperText } from "./input/FormHelperText";
-import { InputFilled } from "./input/InputFilled";
-import { InputLabel } from "./input/InputLabel";
-import { InputOutlined } from "./input/InputOutlined";
-import { InputStandard } from "./input/InputStandard";
-import { SelectFilled } from "./input/SelectFilled";
-import { SelectOutlined } from "./input/SelectOutlined";
-import { SelectStandard } from "./input/SelectStandard";
+import { FormControl } from "./input/FormControl.js";
+import { FormHelperText } from "./input/FormHelperText.js";
+import { InputFilled } from "./input/InputFilled.js";
+import { InputLabel } from "./input/InputLabel.js";
+import { InputOutlined } from "./input/InputOutlined.js";
+import { InputStandard } from "./input/InputStandard.js";
+import { SelectFilled } from "./input/SelectFilled.js";
+import { SelectOutlined } from "./input/SelectOutlined.js";
+import { SelectStandard } from "./input/SelectStandard.js";
+// eslint-disable-next-line import/extensions
import { Colors } from "./style";
export interface Props {
@@ -36,6 +37,18 @@ export interface Props {
children?: ComponentChildren;
}
+const inputVariant = {
+ standard: InputStandard,
+ filled: InputFilled,
+ outlined: InputOutlined,
+};
+
+const selectVariant = {
+ standard: SelectStandard,
+ filled: SelectFilled,
+ outlined: SelectOutlined,
+};
+
export function TextField({
label,
select,
@@ -55,15 +68,3 @@ export function TextField({
</FormControl>
);
}
-
-const inputVariant = {
- standard: InputStandard,
- filled: InputFilled,
- outlined: InputOutlined,
-};
-
-const selectVariant = {
- standard: SelectStandard,
- filled: SelectFilled,
- outlined: SelectOutlined,
-};