mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-18 06:44:27 +01:00
revert bg color until I can decide, cleanup lints
This commit is contained in:
@@ -25,6 +25,7 @@ export function AmountEditable(props: { amountSats: number | bigint, setAmountSa
|
|||||||
setIsFullscreen(!isFullscreen());
|
setIsFullscreen(!isFullscreen());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: validate this doesn't need to be reactive and can be "initialAmountSats"
|
||||||
const [displayAmount, setDisplayAmount] = createSignal(props.amountSats.toString() || "0");
|
const [displayAmount, setDisplayAmount] = createSignal(props.amountSats.toString() || "0");
|
||||||
|
|
||||||
let inputRef!: HTMLInputElement;
|
let inputRef!: HTMLInputElement;
|
||||||
@@ -100,7 +101,7 @@ export function AmountEditable(props: { amountSats: number | bigint, setAmountSa
|
|||||||
})
|
})
|
||||||
|
|
||||||
const prettyPrint = createMemo(() => {
|
const prettyPrint = createMemo(() => {
|
||||||
let parsed = Number(displayAmount());
|
const parsed = Number(displayAmount());
|
||||||
if (isNaN(parsed)) {
|
if (isNaN(parsed)) {
|
||||||
return displayAmount();
|
return displayAmount();
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
import { Motion, Presence } from "@motionone/solid";
|
|
||||||
import { createResource, Show, Suspense } from "solid-js";
|
import { createResource, Show, Suspense } from "solid-js";
|
||||||
|
import { Button, ButtonLink, FancyCard } from "~/components/layout";
|
||||||
import { Button, ButtonLink, FancyCard, LoadingSpinner, SmallHeader } from "~/components/layout";
|
|
||||||
import { useMegaStore } from "~/state/megaStore";
|
import { useMegaStore } from "~/state/megaStore";
|
||||||
import { Amount } from "./Amount";
|
import { Amount } from "./Amount";
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
body {
|
body {
|
||||||
@apply text-white bg-black;
|
@apply text-white bg-black;
|
||||||
@apply bg-fixed bg-no-repeat bg-richer-fade;
|
@apply bg-fixed bg-no-repeat bg-fade-to-blue;
|
||||||
overscroll-behavior-y: none;
|
overscroll-behavior-y: none;
|
||||||
min-height: 100.3%;
|
min-height: 100.3%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export default function Send() {
|
|||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
// TODO: probably a cleaner way to make typescript happy
|
// TODO: probably a cleaner way to make typescript happy
|
||||||
let routerInfo = location as { state?: { destination?: string } };
|
const routerInfo = location as { state?: { destination?: string } };
|
||||||
if (routerInfo.state?.destination && typeof routerInfo.state.destination === "string") {
|
if (routerInfo.state?.destination && typeof routerInfo.state.destination === "string") {
|
||||||
setDestination(routerInfo.state.destination);
|
setDestination(routerInfo.state.destination);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user