chore: move all settings to dashboard

This commit is contained in:
2024-07-22 11:26:44 +01:00
parent 563d313dae
commit ab0923d06d
8 changed files with 74 additions and 38 deletions

View File

@ -28,6 +28,8 @@ import classNames from "classnames";
import ManualStream from "./manual-stream";
import { unixNow } from "@snort/shared";
import { Icon } from "@/element/icon";
import ForwardingModal from "./forwarding";
import BalanceHistoryModal from "./balance-history";
const StreamSummary = lazy(() => import("@/element/summary-chart"));
export function DashboardForLink({ link }: { link: NostrLink }) {
@ -220,6 +222,17 @@ export function DashboardForLink({ link }: { link: NostrLink }) {
</div>
</DashboardCard>
)}
{(!streamLink || status === StreamState.Ended) && (
<DashboardCard className="flex flex-col gap-4">
<h3>
<FormattedMessage defaultMessage="Account Setup" />
</h3>
<div className="flex gap-2">
<BalanceHistoryModal provider={provider} />
<ForwardingModal provider={provider} />
</div>
</DashboardCard>
)}
</div>
{streamLink && status === StreamState.Live && (
<>