Move /create to /chainName/create

This commit is contained in:
abefernan
2023-12-01 16:03:38 +01:00
parent 7d629835bb
commit a45f060346
2 changed files with 19 additions and 16 deletions
+19
View File
@@ -0,0 +1,19 @@
import MultisigForm from "@/components/forms/MultisigForm";
import Page from "@/components/layout/Page";
import StackableContainer from "@/components/layout/StackableContainer";
import { useChains } from "@/context/ChainsContext";
export default function CreatePage() {
const { chain } = useChains();
return (
<Page goBack={{ pathname: `/${chain.registryName}`, title: "home", needsConfirm: true }}>
<StackableContainer base>
<StackableContainer lessPadding>
<h1 className="title">Create Legacy Multisig</h1>
</StackableContainer>
<MultisigForm />
</StackableContainer>
</Page>
);
}
-16
View File
@@ -1,16 +0,0 @@
import MultisigForm from "../components/forms/MultisigForm";
import Page from "../components/layout/Page";
import StackableContainer from "../components/layout/StackableContainer";
const CreatePage = () => (
<Page goBack={{ pathname: "/", title: "home", needsConfirm: true }}>
<StackableContainer base>
<StackableContainer lessPadding>
<h1 className="title">Create Legacy Multisig</h1>
</StackableContainer>
<MultisigForm />
</StackableContainer>
</Page>
);
export default CreatePage;