Update deploy and develope pages

This commit is contained in:
Valtteri Karesto
2021-12-13 17:22:51 +02:00
parent 3707a215bb
commit eddb870f85
2 changed files with 81 additions and 5 deletions

View File

@@ -1,8 +1,37 @@
import Container from "../../components/Container";
import React from "react";
import dynamic from "next/dynamic";
import Flex from "../../components/Flex";
import { useSnapshot } from "valtio";
import { state } from "../../state";
const DeployEditor = dynamic(() => import("../../components/DeployEditor"), {
ssr: false,
});
const Accounts = dynamic(() => import("../../components/Accounts"), {
ssr: false,
});
const LogBox = dynamic(() => import("../../components/LogBox"), {
ssr: false,
});
const Deploy = () => {
const snap = useSnapshot(state);
return (
<Container css={{ py: "$10" }}>This will be the deploy page</Container>
<>
<main style={{ display: "flex", flex: 1 }}>
<DeployEditor />
</main>
<Flex css={{ flexDirection: "row", width: "100%" }}>
<Accounts />
<LogBox
title="Deploy Log"
logs={snap.deployLogs}
clearLog={() => (state.deployLogs = [])}
/>
</Flex>
</>
);
};