diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/LEARNIHON.iml b/.idea/LEARNIHON.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/LEARNIHON.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..dab3e5d --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.vs/LEARNIHON/FileContentIndex/1eeda7fc-d197-451b-929d-8228474d4307.vsidx b/.vs/LEARNIHON/FileContentIndex/1eeda7fc-d197-451b-929d-8228474d4307.vsidx deleted file mode 100644 index 3823cc3..0000000 Binary files a/.vs/LEARNIHON/FileContentIndex/1eeda7fc-d197-451b-929d-8228474d4307.vsidx and /dev/null differ diff --git a/.vs/LEARNIHON/FileContentIndex/4a88821a-2b3e-40c7-8ebe-6fb827f28e1d.vsidx b/.vs/LEARNIHON/FileContentIndex/4a88821a-2b3e-40c7-8ebe-6fb827f28e1d.vsidx new file mode 100644 index 0000000..6f8ad73 Binary files /dev/null and b/.vs/LEARNIHON/FileContentIndex/4a88821a-2b3e-40c7-8ebe-6fb827f28e1d.vsidx differ diff --git a/.vs/LEARNIHON/FileContentIndex/a2a34223-0396-4194-ae0e-7d689c47646f.vsidx b/.vs/LEARNIHON/FileContentIndex/69ef4ba9-7ff1-4f79-99f2-cd318f9b5d46.vsidx similarity index 100% rename from .vs/LEARNIHON/FileContentIndex/a2a34223-0396-4194-ae0e-7d689c47646f.vsidx rename to .vs/LEARNIHON/FileContentIndex/69ef4ba9-7ff1-4f79-99f2-cd318f9b5d46.vsidx diff --git a/.vs/LEARNIHON/FileContentIndex/7ebd542f-537c-4429-9f4a-2eefe33d1177.vsidx b/.vs/LEARNIHON/FileContentIndex/7ebd542f-537c-4429-9f4a-2eefe33d1177.vsidx new file mode 100644 index 0000000..ab6c9d3 Binary files /dev/null and b/.vs/LEARNIHON/FileContentIndex/7ebd542f-537c-4429-9f4a-2eefe33d1177.vsidx differ diff --git a/.vs/LEARNIHON/FileContentIndex/dc430ff2-049b-4973-aec7-e9397b07acd7.vsidx b/.vs/LEARNIHON/FileContentIndex/dc430ff2-049b-4973-aec7-e9397b07acd7.vsidx deleted file mode 100644 index 44132b9..0000000 Binary files a/.vs/LEARNIHON/FileContentIndex/dc430ff2-049b-4973-aec7-e9397b07acd7.vsidx and /dev/null differ diff --git a/.vs/LEARNIHON/v17/.wsuo b/.vs/LEARNIHON/v17/.wsuo index 41f17cf..167a984 100644 Binary files a/.vs/LEARNIHON/v17/.wsuo and b/.vs/LEARNIHON/v17/.wsuo differ diff --git a/.vs/VSWorkspaceState.json b/.vs/VSWorkspaceState.json index edff1fc..f069211 100644 --- a/.vs/VSWorkspaceState.json +++ b/.vs/VSWorkspaceState.json @@ -1,11 +1,12 @@ { "ExpandedNodes": [ "", - "\\assets", "\\components", + "\\model", "\\navigation", - "\\pages" + "\\pages", + "\\redux", + "\\storage" ], - "SelectedNode": "\\pages\\List.tsx", "PreviewInSolutionExplorer": false } \ No newline at end of file diff --git a/.vs/slnx.sqlite b/.vs/slnx.sqlite index 9885928..49cd144 100644 Binary files a/.vs/slnx.sqlite and b/.vs/slnx.sqlite differ diff --git a/components/GradeChip.tsx b/components/GradeChip.tsx index 8b411fd..34ea7b9 100644 --- a/components/GradeChip.tsx +++ b/components/GradeChip.tsx @@ -46,7 +46,7 @@ const style = StyleSheet.create({ text: { color: "white", fontWeight: "bold", - fontSize: "18em", + fontSize: 18, padding: 5 }, @@ -68,7 +68,7 @@ const styleSELECTED = StyleSheet.create({ text: { color: "white", fontWeight: "bold", - fontSize: "18em", + fontSize: 18, padding: 5 }, diff --git a/components/GradeChipList.tsx b/components/GradeChipList.tsx index 78a5cd1..0b7569c 100644 --- a/components/GradeChipList.tsx +++ b/components/GradeChipList.tsx @@ -9,8 +9,6 @@ interface kanjiListSeachPanelProps { const GradeChipList = (props: kanjiListSeachPanelProps) => { - const navigator = useNavigation(); - return ( { text: { color: answerTextColor, fontWeight: "bold", - fontSize: "20em" + fontSize: 20 } }) const [loadingSvg, setLoadingSvg] = useState(false); diff --git a/components/KanjiListCell.tsx b/components/KanjiListCell.tsx index 9a44d5f..92473b9 100644 --- a/components/KanjiListCell.tsx +++ b/components/KanjiListCell.tsx @@ -28,7 +28,7 @@ const KanjiListCell = React.memo((props: kanjiListCellProps) => { } }); - const memoizedValues = useMemo(async () => { + useMemo(async () => { const guess = await retrieveGuess(props.kanji.character); const ratio = guess ? await calcCorrectGuessesRatio(guess) : -1; setRatio(ratio); @@ -63,7 +63,7 @@ const cellStyle_light = StyleSheet.create({ kanji: { fontWeight: "bold", color: "black", - fontSize: "20em", + fontSize: 20, width: "10%" } }) @@ -84,7 +84,7 @@ const cellStyle_dark = StyleSheet.create({ kanji: { fontWeight: "bold", color: "white", - fontSize: "20em", + fontSize: 20, width: "10%", }, }) diff --git a/pages/List.tsx b/pages/List.tsx index 8d6b62e..cc9479c 100644 --- a/pages/List.tsx +++ b/pages/List.tsx @@ -1,6 +1,4 @@ import React from 'react'; -import { StyleSheet, useColorScheme, View } from 'react-native'; -import { learnihonColors } from '../assets/colors'; import KanjiList from '../components/KanjiList'; import LearnihonPage from './LearnihonPage'; diff --git a/pages/Playground.tsx b/pages/Playground.tsx index 44a81c0..9bd1f61 100644 --- a/pages/Playground.tsx +++ b/pages/Playground.tsx @@ -1,6 +1,4 @@ import React from 'react'; -import { StyleSheet, useColorScheme, View } from 'react-native'; -import { learnihonColors } from '../assets/colors'; import DrawingCanva from '../components/DrawingCanva'; import KanjiPlaygroundList from '../components/KanjiPlaygroundList'; import LearnihonPage from './LearnihonPage'; diff --git a/redux/store.ts b/redux/store.ts index f2c30a7..d37fd69 100644 --- a/redux/store.ts +++ b/redux/store.ts @@ -13,8 +13,10 @@ const store = configureStore( reducer, middleware: getDefaultMiddleware({ serializableCheck: { - ignoredActions: [SET_KANJIS, SET_PLAYGROUND_LIST, SET_SELECTED_KANJI] - } + ignoredActions: [SET_KANJIS, SET_PLAYGROUND_LIST, SET_SELECTED_KANJI], + ignoredActionPaths: ['kanjiReducer'], + ignoredPaths: ['kanjiReducer'] + } }) },);