mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-07-04 01:10:53 +00:00
refactor: flexlayout
This commit is contained in:
parent
c6c70e5491
commit
8c96e0d77d
@ -11,9 +11,9 @@ interface ProblemEditViewProps {
|
||||
|
||||
export const ProblemEditView = ({ problemId }: ProblemEditViewProps) => {
|
||||
const components: Record<string, React.ReactNode> = {
|
||||
detail: <EditDetailPanel problemId={problemId} />,
|
||||
description: <EditDescriptionPanel problemId={problemId} />,
|
||||
solution: <EditSolutionPanel problemId={problemId} />,
|
||||
detail: <EditDetailPanel problemId={problemId} />,
|
||||
code: <EditCodePanel problemId={problemId} />,
|
||||
testcase: <EditTestcasePanel problemId={problemId} />,
|
||||
};
|
||||
|
@ -144,13 +144,6 @@ const initialProblemEditFlexLayoutJsonModel: IJsonModel = {
|
||||
id: "1",
|
||||
weight: 50,
|
||||
children: [
|
||||
{
|
||||
type: "tab",
|
||||
id: "detail",
|
||||
name: "Details",
|
||||
component: "detail",
|
||||
enableClose: false,
|
||||
},
|
||||
{
|
||||
type: "tab",
|
||||
id: "description",
|
||||
@ -165,6 +158,13 @@ const initialProblemEditFlexLayoutJsonModel: IJsonModel = {
|
||||
component: "solution",
|
||||
enableClose: false,
|
||||
},
|
||||
{
|
||||
type: "tab",
|
||||
id: "detail",
|
||||
name: "Details",
|
||||
component: "detail",
|
||||
enableClose: false,
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user