Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
benchristel committed Sep 4, 2024
1 parent 7cd8f0c commit b80d6f2
Showing 1 changed file with 27 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
interactiveSizes,
InteractiveGraphWidget,
SizingUtils,
Util, PerseusGraphType,
Util,
PerseusGraphType,

Check failure on line 8 in packages/perseus-editor/src/widgets/interactive-graph-editor/index.tsx

View workflow job for this annotation

GitHub Actions / Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x)

'PerseusGraphType' is defined but never used. Allowed unused vars must match /^_*$/u
} from "@khanacademy/perseus";
import {View} from "@khanacademy/wonder-blocks-core";
import {OptionItem, SingleSelect} from "@khanacademy/wonder-blocks-dropdown";
Expand Down Expand Up @@ -438,18 +439,18 @@ class InteractiveGraphEditor extends React.Component<Props> {
<OptionItem value="grid" label="grid" />
{this.props.correct?.numSides !==
"unlimited" && (
<OptionItem
value="angles"
label="interior angles"
/>
)}
<OptionItem
value="angles"
label="interior angles"
/>
)}
{this.props.correct?.numSides !==
"unlimited" && (
<OptionItem
value="sides"
label="side measures"
/>
)}
<OptionItem
value="sides"
label="side measures"
/>
)}
</SingleSelect>
<InfoTip>
<p>
Expand Down Expand Up @@ -670,24 +671,24 @@ class InteractiveGraphEditor extends React.Component<Props> {
// Only show the "Add locked figure" dropdown if the graph
// is using Mafs.
this.props.graph &&
this.props.apiOptions?.flags?.mafs?.[
this.props.graph.type
this.props.apiOptions?.flags?.mafs?.[
this.props.graph.type
] && (
<LockedFiguresSection
showM2bFeatures={
this.props.apiOptions?.flags?.mafs?.[
"interactive-graph-locked-features-m2b"
<LockedFiguresSection
showM2bFeatures={
this.props.apiOptions?.flags?.mafs?.[
"interactive-graph-locked-features-m2b"
]
}
showLabelsFlag={
this.props.apiOptions?.flags?.mafs?.[
"interactive-graph-locked-features-labels"
}
showLabelsFlag={
this.props.apiOptions?.flags?.mafs?.[
"interactive-graph-locked-features-labels"
]
}
figures={this.props.lockedFigures}
onChange={this.props.onChange}
/>
)
}
figures={this.props.lockedFigures}
onChange={this.props.onChange}
/>
)
}
</View>
);
Expand Down

0 comments on commit b80d6f2

Please sign in to comment.