Skip to content

Commit d308d49

Browse files
author
Manuel Ruck
committed
refactor: fix elsing issues
Signed-off-by: Manuel Ruck <[email protected]>
1 parent 43ebd2c commit d308d49

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// https://docs.expo.dev/guides/using-eslint/
22
module.exports = {
3-
extends: 'expo',
4-
ignorePatterns: ['/dist/*'],
3+
extends: "expo",
4+
ignorePatterns: ["/dist/*", "**/__generated__/*", "node_modules/*"],
55
};

src/app/(sidebar)/_layout.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import SvgWahlOMeter from "../../components/Icons/WahlOMeter";
55
import SvgSettings from "../../components/Icons/Settings";
66
import SvgFaqAndSupport from "../../components/Icons/FaqAndSupport";
77
import SvgAbout from "../../components/Icons/About";
8-
import { useDevModeStore } from "../../api/state/dev";
98
import { Drawer } from "expo-router/drawer";
109
import { Sidebar } from "src/components/Sidebar/Sidebar";
1110
import { lightTheme } from "@democracy-deutschland/ui";
@@ -22,8 +21,6 @@ export type SidebarParamList = {
2221
};
2322

2423
const SidebarNavigation = () => {
25-
const { devMode } = useDevModeStore();
26-
2724
return (
2825
<Drawer
2926
// initialRouteName="Bundestag"

src/screens/Search/Results.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
import React, { useEffect } from "react";
22
import styled from "styled-components/native";
33
import { SectionList } from "react-native";
4-
import { useNavigation } from "@react-navigation/core";
54
import {
65
SearchProceduresQuery,
76
useFinishSearchMutation,
87
useMostSearchedQuery,
98
useSearchProceduresLazyQuery,
109
} from "../../__generated__/graphql";
11-
import { NativeStackNavigationProp } from "@react-navigation/native-stack";
12-
import { RootStackParamList } from "../../app/_layout";
1310
import { useRecoilState, useRecoilValue } from "recoil";
1411
import { ParlamentIdentifier, parlaments } from "../../api/state/parlament";
1512
import { searchHistoryState, searchTermState } from "../../api/state/search";

src/types/navigation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type AppRoutes = {
1717
// Make types available for expo-router
1818
declare global {
1919
namespace ReactNavigation {
20-
interface TypedRoutes extends AppRoutes {}
20+
type TypedRoutes = AppRoutes;
2121
}
2222
}
2323

0 commit comments

Comments
 (0)