mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-02-07 07:14:27 +01:00
backbutton was a backlink so fixed that
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { A } from "solid-start";
|
||||
import { Back } from "~/assets/svg/Back";
|
||||
|
||||
export function BackButton(props: { href?: string, title?: string }) {
|
||||
return (<A href={props.href ? props.href : "/"} class="text-m-red active:text-m-red/80 text-xl font-semibold no-underline md:hidden flex items-center"><Back />{props.title ? props.title : "Home"}</A>)
|
||||
export function BackButton(props: { onClick: () => void, title?: string }) {
|
||||
return (<button onClick={props.onClick} class="text-m-red active:text-m-red/80 text-xl font-semibold no-underline md:hidden flex items-center"><Back />{props.title ? props.title : "Home"}</button>)
|
||||
}
|
||||
6
src/components/layout/BackLink.tsx
Normal file
6
src/components/layout/BackLink.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import { A } from "solid-start";
|
||||
import { Back } from "~/assets/svg/Back";
|
||||
|
||||
export function BackLink(props: { href?: string, title?: string }) {
|
||||
return (<A href={props.href ? props.href : "/"} class="text-m-red active:text-m-red/80 text-xl font-semibold no-underline md:hidden flex items-center"><Back />{props.title ? props.title : "Home"}</A>)
|
||||
}
|
||||
@@ -2,14 +2,14 @@ import { DeleteEverything } from "~/components/DeleteEverything";
|
||||
import KitchenSink from "~/components/KitchenSink";
|
||||
import NavBar from "~/components/NavBar";
|
||||
import { Card, DefaultMain, LargeHeader, NodeManagerGuard, SafeArea, SmallHeader, VStack } from "~/components/layout";
|
||||
import { BackButton } from "~/components/layout/BackButton";
|
||||
import { BackLink } from "~/components/layout/BackLink";
|
||||
|
||||
export default function Admin() {
|
||||
return (
|
||||
<NodeManagerGuard>
|
||||
<SafeArea>
|
||||
<DefaultMain>
|
||||
<BackButton href="/settings" title="Settings" />
|
||||
<BackLink href="/settings" title="Settings" />
|
||||
<LargeHeader>Admin</LargeHeader>
|
||||
<VStack>
|
||||
<Card><p>If you know what you're doing you're in the right place!</p></Card>
|
||||
|
||||
@@ -10,7 +10,7 @@ import { useCopy } from "~/utils/useCopy";
|
||||
import mempoolTxUrl from "~/utils/mempoolTxUrl";
|
||||
import { Amount } from "~/components/Amount";
|
||||
import { FullscreenModal } from "~/components/layout/FullscreenModal";
|
||||
import { BackButton } from "~/components/layout/BackButton";
|
||||
import { BackLink } from "~/components/layout/BackLink";
|
||||
import { TagEditor, TagItem } from "~/components/TagEditor";
|
||||
import { StyledRadioGroup } from "~/components/layout/Radio";
|
||||
import { showToast } from "~/components/Toaster";
|
||||
@@ -205,7 +205,7 @@ export default function Receive() {
|
||||
<NodeManagerGuard>
|
||||
<SafeArea>
|
||||
<main class="max-w-[600px] flex flex-col gap-4 mx-auto p-4">
|
||||
<BackButton />
|
||||
<BackLink />
|
||||
<LargeHeader>Receive Bitcoin</LargeHeader>
|
||||
<Switch>
|
||||
<Match when={!unified() || receiveState() === "edit"}>
|
||||
|
||||
@@ -15,8 +15,8 @@ import { FullscreenModal } from "~/components/layout/FullscreenModal";
|
||||
import megacheck from "~/assets/icons/megacheck.png"
|
||||
import megaex from "~/assets/icons/megaex.png";
|
||||
import mempoolTxUrl from "~/utils/mempoolTxUrl";
|
||||
import { BackButton } from "~/components/layout/BackButton";
|
||||
import { useNavigate } from "solid-start";
|
||||
import { BackLink } from "~/components/layout/BackLink";
|
||||
|
||||
type SendSource = "lightning" | "onchain";
|
||||
|
||||
@@ -199,7 +199,7 @@ export default function Send() {
|
||||
<NodeManagerGuard>
|
||||
<SafeArea>
|
||||
<DefaultMain>
|
||||
<BackButton />
|
||||
<BackLink />
|
||||
<LargeHeader>Send Bitcoin</LargeHeader>
|
||||
<FullscreenModal
|
||||
title={sentDetails()?.amount ? "Sent" : "Payment Failed"}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ButtonLink, DefaultMain, LargeHeader, NodeManagerGuard, SafeArea, VStack } from "~/components/layout";
|
||||
import { BackButton } from "~/components/layout/BackButton";
|
||||
import { BackLink } from "~/components/layout/BackLink";
|
||||
import NavBar from "~/components/NavBar";
|
||||
import { SeedWords } from "~/components/SeedWords";
|
||||
import { SettingsStringsEditor } from "~/components/SettingsStringsEditor";
|
||||
@@ -12,7 +12,7 @@ export default function Settings() {
|
||||
<NodeManagerGuard>
|
||||
<SafeArea>
|
||||
<DefaultMain>
|
||||
<BackButton />
|
||||
<BackLink />
|
||||
<LargeHeader>Settings</LargeHeader>
|
||||
<VStack biggap>
|
||||
<VStack>
|
||||
|
||||
Reference in New Issue
Block a user