Skip to content

Commit 562bde6

Browse files
committed
Final bits of cleanup
1 parent 0d4e115 commit 562bde6

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

packages/perseus-editor/src/__stories__/editor-with-layout.stories.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,10 @@ export const Controlled: Story = {
8686
<Section title="JSON Mode Editor">
8787
{items.jsonModeEditor}
8888
</Section>
89+
90+
<Section title="Question Extras">
91+
{items.questionExtras}
92+
</Section>
8993
</View>
9094

9195
<Section title="Item Editor">
@@ -102,10 +106,6 @@ export const Controlled: Story = {
102106
<Section title="Hints Editor">
103107
{items.hintsEditor}
104108
</Section>
105-
106-
<Section title="Question Extras">
107-
{items.questionExtras}
108-
</Section>
109109
</View>
110110
)}
111111
</EditorWithLayout>

packages/perseus-editor/src/editor-with-layout.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import _ from "underscore";
66
import DeviceFramer from "./components/device-framer";
77
import JsonEditor from "./components/json-editor";
88
import ViewportResizer from "./components/viewport-resizer";
9-
import ContentPreview from "./content-preview";
109
import CombinedHintsEditor from "./hint-editor";
1110
import IframeContentRenderer from "./iframe-content-renderer";
1211
import ItemEditor from "./item-editor";
@@ -393,7 +392,6 @@ class EditorWithLayout extends React.Component<Props, State> {
393392
ref={this.itemExtrasEditor}
394393
onChange={(answerArea) =>
395394
this.handleChange({
396-
// @ts-expect-error - TS2322 - Types of property 'calculator' are incompatible.
397395
answerArea: {
398396
...this.props.answerArea,
399397
...answerArea,

0 commit comments

Comments
 (0)