Skip to content

Commit

Permalink
Tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
jamdelion committed Dec 5, 2024
1 parent dacbb0f commit 688bff6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import Delete from "@mui/icons-material/Delete";
import Box from "@mui/material/Box";
import Button from "@mui/material/Button";
import IconButton from "@mui/material/IconButton";
import { BaseOptionsEditor } from "@planx/components/shared/BaseOptionsEditor";
import adjust from "ramda/src/adjust";
import compose from "ramda/src/compose";
import remove from "ramda/src/remove";
Expand Down Expand Up @@ -71,7 +70,7 @@ export const Options: React.FC<{ formik: FormikHookReturn }> = ({ formik }) => {
}) as Option
}
newValueLabel="add new option"
Editor={BaseOptionsEditor}
Editor={ChecklistOptionsEditor}
editorExtraProps={{
groupIndex,
showValueField: !!formik.values.fn,
Expand Down
5 changes: 1 addition & 4 deletions editor.planx.uk/src/@planx/components/Question/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,7 @@ export const Question: React.FC<Props> = (props) => {
}) as Option
}
Editor={QuestionOptionsEditor}
editorExtraProps={{
showValueField: !!formik.values.fn,
showDescriptionField: true,
}}
editorExtraProps={{ showValueField: !!formik.values.fn }}
/>
</ModalSectionContent>
</ModalSection>
Expand Down

0 comments on commit 688bff6

Please sign in to comment.