Move header into Mainframe and controls to header

This commit is contained in:
Nilay Majorwar
2022-02-03 00:44:26 +05:30
parent 0befc7369a
commit 2db1e77a83
10 changed files with 99 additions and 75 deletions

View File

@ -3,7 +3,6 @@ import React from "react";
import { NextPage } from "next";
import Head from "next/head";
import { Mainframe } from "../../ui/Mainframe";
import { Header } from "../../ui/header";
import LangProvider from "../../languages/$LANG_ID";
const LANG_ID = "$LANG_ID";
const LANG_NAME = "$LANG_NAME";
@ -14,12 +13,11 @@ const IDE: NextPage = () => {
<Head>
<title>{LANG_NAME} | Esolang Park</title>
</Head>
<div style={{ height: "100%", display: "flex", flexDirection: "column" }}>
<Header langId={LANG_ID} langName={LANG_NAME} />
<div style={{ flexGrow: 1 }}>
<Mainframe langName={LANG_ID} provider={LangProvider} />
</div>
</div>
<Mainframe
langId={LANG_ID}
langName={LANG_NAME}
provider={LangProvider}
/>
</>
);
};