Skip to content

Commit 7031ce4

Browse files
add page
1 parent 6a14075 commit 7031ce4

2 files changed

Lines changed: 36 additions & 1 deletion

File tree

editor-packages/editor-preferences/layouts/page-content-layout.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ const Container = styled.div`
3131
h3,
3232
h4,
3333
h5,
34-
h6 {
34+
h6,
35+
p {
3536
color: white;
3637
h1 {
3738
font-size: 21px;
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import React, { useEffect } from "react";
2+
import { PageContentLayout } from "../layouts";
3+
import type { Preference, PreferencePageProps } from "../core";
4+
import { PreferenceItem } from "../components/preference-item";
5+
6+
const preference_debug_mode: Preference = {
7+
identifier: "editor.debug-mode",
8+
title: "Debug Mode",
9+
properties: {
10+
"editor.debug-mode.enabled": {
11+
type: "boolean",
12+
description: "Enable debug mode",
13+
default: false,
14+
},
15+
},
16+
};
17+
18+
export default function AdvancedPreferencesPage({
19+
state,
20+
dispatch,
21+
}: PreferencePageProps) {
22+
return (
23+
<>
24+
<PageContentLayout>
25+
<h1>Advanced</h1>
26+
<main>
27+
<section>
28+
<PreferenceItem {...preference_debug_mode} />
29+
</section>
30+
</main>
31+
</PageContentLayout>
32+
</>
33+
);
34+
}

0 commit comments

Comments
 (0)