Run prettier

This commit is contained in:
Christoph Lienhard 2021-06-13 11:51:51 +02:00
parent 73055d2399
commit 1f895d4bad
Signed by: christoph.lienhard
GPG Key ID: 6B98870DDC270884
3 changed files with 9 additions and 8 deletions

View File

@ -28,9 +28,9 @@ const useStyles = makeStyles((theme) => ({
}));
export default function CategoryList(): React.ReactElement {
const categories = useQuery<GetAllCategoriesResponse, null>(
GET_ALL_CATEGORIES
).data?.allCategories.nodes;
const categories =
useQuery<GetAllCategoriesResponse, null>(GET_ALL_CATEGORIES).data
?.allCategories.nodes;
const classes = useStyles();
const handleAddClick = () => {

View File

@ -52,9 +52,9 @@ export default function DialogChangeQuestion(): React.ReactElement {
},
}
);
const categories = useQuery<GetAllCategoriesResponse, null>(
GET_ALL_CATEGORIES
).data?.allCategories.nodes;
const categories =
useQuery<GetAllCategoriesResponse, null>(GET_ALL_CATEGORIES).data
?.allCategories.nodes;
const [editQuestion, { loading: editLoading }] = useMutation<
EditQuestionResponse,

View File

@ -28,8 +28,9 @@ const useStyles = makeStyles((theme) => ({
}));
export default function QuestionList(): React.ReactElement {
const questions = useQuery<GetAllQuestionsResponse, null>(GET_ALL_QUESTIONS)
.data?.allQuestions.nodes;
const questions =
useQuery<GetAllQuestionsResponse, null>(GET_ALL_QUESTIONS).data
?.allQuestions.nodes;
const classes = useStyles();
const handleAddButtonClick = () => {