Skip to content

Commit 31c255f

Browse files
committed
correct demo layout
1 parent c9ccb1f commit 31c255f

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/app/wallet/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function WalletLayout({
88
children: React.ReactNode;
99
}) {
1010
return appConfig.demo ? (
11-
<div className="w-full flex-1">{children}</div>
11+
<>{children}</>
1212
) : (
1313
<main className="flex-1 flex flex-col justify-center items-center bg-dalle bg-no-repeat bg-fixed bg-cover">
1414
{children}

src/containers/connect_wallet/ConnectWalletForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function ConnectWalletForm() {
1111
const { submitForm, connectionError } = useConnectWalletContext();
1212

1313
return (
14-
<div className="w-full md:max-w-[780px] p-6 flex flex-col gap-9 bg-darker md:bg-darker md:border border-tertiary md:rounded">
14+
<div className="flex-1 lg:my-8 w-full md:max-w-[780px] p-6 flex flex-col gap-9 bg-darker md:bg-darker md:border border-tertiary md:rounded">
1515
<SelectWallet />
1616
<ContactDetails />
1717
<AcceptTnC />

src/containers/sink/SinkingForm.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import DashboardTitle from "../../components/dashboard/DashboardTitle";
1515
import FormError from "../../components/FormError";
1616
import { CheckoutSteps, useSinkingContext } from "@/context/SinkingContext";
1717
import { useSearchParams } from "next/navigation";
18+
import appConfig from "@/config";
1819

1920
export default function SinkingForm() {
2021
const { setSinkRequest, setStep } = useSinkingContext();
@@ -61,7 +62,11 @@ export default function SinkingForm() {
6162

6263
return (
6364
<div className="flex flex-col mt-8 md:mt-12">
64-
{/* <DashboardTitle>Sink CARBON</DashboardTitle> */}
65+
{appConfig.demo && (
66+
<div className="self-center text-2xl md:text-2xl font-semibold mb-6">
67+
Sink CARBON
68+
</div>
69+
)}
6570
<form className="flex flex-col gap-12 md:gap-20 mt-0">
6671
<div className="mx-4 md:mx-8 flex flex-col gap-12 min-w-[80%]">
6772
<Suspense>

0 commit comments

Comments
 (0)