diff --git a/src/__generated__/globalTypes.ts b/src/__generated__/globalTypes.ts index 0a7913e..8c2d157 100644 --- a/src/__generated__/globalTypes.ts +++ b/src/__generated__/globalTypes.ts @@ -1,6 +1,5 @@ /* tslint:disable */ /* eslint-disable */ -// @generated // This file was automatically generated and should not be edited. //============================================================== diff --git a/src/components/ContentEditor/__generated__/updateSelectedComponent.ts b/src/components/ContentEditor/__generated__/updateSelectedComponent.ts index b580f80..7e4803c 100644 --- a/src/components/ContentEditor/__generated__/updateSelectedComponent.ts +++ b/src/components/ContentEditor/__generated__/updateSelectedComponent.ts @@ -1,6 +1,5 @@ /* tslint:disable */ /* eslint-disable */ -// @generated // This file was automatically generated and should not be edited. import { api_component_set_input } from "./../../../__generated__/globalTypes"; diff --git a/src/components/ContentEditor/components/Dialog/__generated__/getDataOfDialog.ts b/src/components/ContentEditor/components/Dialog/__generated__/getDataOfDialog.ts index 61a64f7..10a1300 100644 --- a/src/components/ContentEditor/components/Dialog/__generated__/getDataOfDialog.ts +++ b/src/components/ContentEditor/components/Dialog/__generated__/getDataOfDialog.ts @@ -1,6 +1,5 @@ /* tslint:disable */ /* eslint-disable */ -// @generated // This file was automatically generated and should not be edited. // ==================================================== diff --git a/src/components/VoggiChapterCard.tsx b/src/components/VoggiChapterCard.tsx index e23280c..6d24fd3 100644 --- a/src/components/VoggiChapterCard.tsx +++ b/src/components/VoggiChapterCard.tsx @@ -9,10 +9,10 @@ import CardContent from "@material-ui/core/CardContent"; import CardActionArea from "@material-ui/core/CardActionArea"; import { styles } from "styles"; -import { chapters_wordGroups_chapters_edges_node } from "../queries/__generated__/chapters_wordGroups"; +import { chapters_wordGroups_chapters } from "../queries/__generated__/chapters_wordGroups"; interface Props extends WithStyles { - chapter: chapters_wordGroups_chapters_edges_node; + chapter: chapters_wordGroups_chapters; } const VoggiChapterCard = ({ classes, chapter }: Props) => { @@ -35,7 +35,7 @@ const VoggiChapterCard = ({ classes, chapter }: Props) => { {t("chapter:nWordGroups")}{" "} - {chapter.wordGroups ? chapter.wordGroups.edges.length : 0} + {chapter.wordgroups ? chapter.wordgroups.length : 0} diff --git a/src/components/WordCard.tsx b/src/components/WordCard.tsx index 33cf1eb..e509744 100644 --- a/src/components/WordCard.tsx +++ b/src/components/WordCard.tsx @@ -9,13 +9,15 @@ import CardActionArea from "@material-ui/core/CardActionArea"; import { styles } from "styles"; import { subscribeWordGroupById_wordGroup_words_word } from "queries/__generated__/subscribeWordGroupById"; +import {useTranslation} from "react-i18next"; interface Props extends WithStyles { word: subscribeWordGroupById_wordGroup_words_word; - id: string; + wordGroupId: string; } -const WordCard = ({ classes, word, id }: Props) => { +const WordCard = ({ classes, word, wordGroupId }: Props) => { + const { t } = useTranslation(); // Note: MUI links together with react-router-dom and Typescript are a bit tricky due to their dynamic nature // See the discussion and provided solutions here... https://github.com/mui-org/material-ui/issues/7877 //