Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshiel committed Feb 6, 2024
1 parent 1418be2 commit b4bbfd4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
12 changes: 12 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
"@types/redux-logger": "^3.0.9",
"@types/store": "^2.0.2",
"@types/storejs": "^2.0.3",
"@types/styled-components": "^5.1.34",
"@types/uuid": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^4.28.1",
"@typescript-eslint/parser": "^4.28.1",
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/author/category-list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function CategoryListItem(props: {
if (!topic) {
return null;
}
let topicName =
const topicName =
topic.categoryParent === category.id
? `${category.name}`
: topic.name || "";
Expand Down
1 change: 0 additions & 1 deletion client/src/components/author/question-edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
import ParaphraseList from "components/author/question-paraphrase-list";
import TopicsList from "components/author/question-topics-list";
import { SubjectQuestionGQL } from "types-gql";
import questions from "store/slices/questions";

export function QuestionEditCard(props: {
subjectType: SubjectTypes;
Expand Down
3 changes: 1 addition & 2 deletions client/src/components/author/topics-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function TopicCard(props: {
label="Topic"
variant="outlined"
value={
Boolean(topic.categoryParent)
topic.categoryParent
? `(Category Default) ${topic.name}`
: topic.name
}
Expand Down Expand Up @@ -118,7 +118,6 @@ export function TopicsList(props: {
}): JSX.Element {
const { classes, topics } = props;
const { height: windowHeight } = useWithWindowSize();
const topicsToDisplay = topics.filter((t) => !t.categoryParent);

function onDragEnd(result: DropResult) {
if (!result.destination) {
Expand Down

0 comments on commit b4bbfd4

Please sign in to comment.