aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/components/Part.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2024-05-21 10:09:43 -0300
committerSebastian <sebasjm@gmail.com>2024-05-21 10:09:43 -0300
commitace6f98a0795c1198a2860f5ede8b1df1405bd16 (patch)
treebf1bc9c91fb5e6a6313fd53cf5f66456b01f3cab /packages/taler-wallet-webextension/src/components/Part.tsx
parent766becbe61fdcfcca684eb061f2e2b0b87f1abcc (diff)
downloadwallet-core-ace6f98a0795c1198a2860f5ede8b1df1405bd16.tar.xz
fix #8855
Diffstat (limited to 'packages/taler-wallet-webextension/src/components/Part.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/components/Part.tsx10
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/taler-wallet-webextension/src/components/Part.tsx b/packages/taler-wallet-webextension/src/components/Part.tsx
index b95bbf3b7..2fb03308b 100644
--- a/packages/taler-wallet-webextension/src/components/Part.tsx
+++ b/packages/taler-wallet-webextension/src/components/Part.tsx
@@ -19,14 +19,15 @@ import {
stringifyPaytoUri,
TranslatedString,
} from "@gnu-taler/taler-util";
+import { useTranslationContext } from "@gnu-taler/web-util/browser";
import { styled } from "@linaria/react";
import { Fragment, h, VNode } from "preact";
import { useState } from "preact/hooks";
+import arrowDown from "../svg/chevron-down.inline.svg";
import {
ExtraLargeText,
LargeText,
- SmallBoldText,
- SmallLightText,
+ SmallBoldText
} from "./styled/index.js";
export type Kind = "positive" | "negative" | "neutral";
@@ -96,11 +97,8 @@ const CollasibleBox = styled.div`
}
}
`;
-import arrowDown from "../svg/chevron-down.inline.svg";
-import { useTranslationContext } from "@gnu-taler/web-util/browser";
-export function PartCollapsible({ text, title, big, showSign }: Props): VNode {
- const Text = big ? ExtraLargeText : LargeText;
+export function PartCollapsible({ text, title }: Props): VNode {
const [collapsed, setCollapsed] = useState(true);
return (