summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/components/Part.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-03-29 09:58:06 -0300
committerSebastian <sebasjm@gmail.com>2022-03-29 10:04:33 -0300
commit3dd1047b085fa7795f322c5829f39208465bff13 (patch)
tree19340ca9420466e7059849dbf7013901733c0fde /packages/taler-wallet-webextension/src/components/Part.tsx
parentcb18b9813e5df6e315dfb1827f5f7cf304977390 (diff)
downloadwallet-core-3dd1047b085fa7795f322c5829f39208465bff13.tar.gz
wallet-core-3dd1047b085fa7795f322c5829f39208465bff13.tar.bz2
wallet-core-3dd1047b085fa7795f322c5829f39208465bff13.zip
added react eslint and fix most of the warns
Diffstat (limited to 'packages/taler-wallet-webextension/src/components/Part.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/components/Part.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/taler-wallet-webextension/src/components/Part.tsx b/packages/taler-wallet-webextension/src/components/Part.tsx
index 1d38d16bf..d1683b20b 100644
--- a/packages/taler-wallet-webextension/src/components/Part.tsx
+++ b/packages/taler-wallet-webextension/src/components/Part.tsx
@@ -13,9 +13,8 @@
You should have received a copy of the GNU General Public License along with
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-import { AmountLike } from "@gnu-taler/taler-util";
-import { ExtraLargeText, LargeText, SmallLightText } from "./styled/index.js";
import { h, VNode } from "preact";
+import { ExtraLargeText, LargeText, SmallLightText } from "./styled/index.js";
export type Kind = "positive" | "negative" | "neutral";
interface Props {
@@ -24,7 +23,7 @@ interface Props {
kind: Kind;
big?: boolean;
}
-export function Part({ text, title, kind, big }: Props) {
+export function Part({ text, title, kind, big }: Props): VNode {
const Text = big ? ExtraLargeText : LargeText;
return (
<div style={{ margin: "1em" }}>