mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-29 11:04:20 +01:00
add check-types command and fix type errors
This commit is contained in:
@@ -382,9 +382,10 @@ export default function Redshift() {
|
||||
return (await state.mutiny_wallet?.list_utxos()) as UtxoItem[];
|
||||
};
|
||||
|
||||
// TODO: FIXME: this is old code needs to be revisited!
|
||||
const getChannels = async () => {
|
||||
console.log("Getting channels");
|
||||
await state.mutiny_wallet?.sync();
|
||||
// await state.mutiny_wallet?.sync();
|
||||
const channels =
|
||||
(await state.mutiny_wallet?.list_channels()) as Promise<
|
||||
MutinyChannel[]
|
||||
|
||||
@@ -29,9 +29,7 @@ export default function Scanner() {
|
||||
let text;
|
||||
|
||||
if (Capacitor.isNativePlatform()) {
|
||||
const { value } = await Clipboard.read({
|
||||
type: "string"
|
||||
});
|
||||
const { value } = await Clipboard.read();
|
||||
text = value;
|
||||
} else {
|
||||
text = await navigator.clipboard.readText();
|
||||
|
||||
@@ -391,9 +391,7 @@ export default function Send() {
|
||||
let text;
|
||||
|
||||
if (Capacitor.isNativePlatform()) {
|
||||
const { value } = await Clipboard.read({
|
||||
type: "string"
|
||||
});
|
||||
const { value } = await Clipboard.read();
|
||||
text = value;
|
||||
} else {
|
||||
if (!navigator.clipboard.readText) {
|
||||
|
||||
@@ -12,11 +12,11 @@ export default function NotFound() {
|
||||
const i18n = useI18n();
|
||||
return (
|
||||
<SafeArea>
|
||||
<Title>{i18n.t("not_found.title")}</Title>
|
||||
<Title>{i18n.t("error.not_found.title")}</Title>
|
||||
<HttpStatusCode code={404} />
|
||||
<DefaultMain>
|
||||
<LargeHeader>{i18n.t("not_found.title")}</LargeHeader>
|
||||
<p>{i18n.t("not_found.wtf_paul")}</p>
|
||||
<LargeHeader>{i18n.t("error.not_found.title")}</LargeHeader>
|
||||
<p>{i18n.t("error.not_found.wtf_paul")}</p>
|
||||
<div class="h-full" />
|
||||
<ButtonLink href="/" intent="red">
|
||||
{i18n.t("common.dangit")}
|
||||
|
||||
@@ -97,9 +97,7 @@ function TwelveWordsEntry() {
|
||||
let text;
|
||||
|
||||
if (Capacitor.isNativePlatform()) {
|
||||
const { value } = await Clipboard.read({
|
||||
type: "string"
|
||||
});
|
||||
const { value } = await Clipboard.read();
|
||||
text = value;
|
||||
} else {
|
||||
if (!navigator.clipboard.readText) {
|
||||
|
||||
Reference in New Issue
Block a user