diff --git a/AppDrawer.tsx b/AppDrawer.tsx index 681f675..c6fd850 100644 --- a/AppDrawer.tsx +++ b/AppDrawer.tsx @@ -10,7 +10,7 @@ import SettingsPage from "./SettingsPage"; import TimerPage from "./TimerPage"; import TimerProgress from "./TimerProgress"; import WeightList from "./WeightList"; -import { DrawerParams } from "./drawer-param-list"; +import { DrawerParams } from "./drawer-params"; const Drawer = createDrawerNavigator(); diff --git a/DrawerHeader.tsx b/DrawerHeader.tsx index a979394..3029794 100644 --- a/DrawerHeader.tsx +++ b/DrawerHeader.tsx @@ -1,7 +1,7 @@ import { DrawerNavigationProp } from "@react-navigation/drawer"; import { useNavigation } from "@react-navigation/native"; import { Appbar, IconButton } from "react-native-paper"; -import { DrawerParams } from "./drawer-param-list"; +import { DrawerParams } from "./drawer-params"; export default function DrawerHeader({ name, diff --git a/EditExercise.tsx b/EditExercise.tsx index 0a83731..43d7679 100644 --- a/EditExercise.tsx +++ b/EditExercise.tsx @@ -14,7 +14,7 @@ import { StackParams } from "./AppStack"; import ConfirmDialog from "./ConfirmDialog"; import { MARGIN, PADDING } from "./constants"; import { getNow, planRepo, setRepo, settingsRepo } from "./db"; -import { DrawerParams } from "./drawer-param-list"; +import { DrawerParams } from "./drawer-params"; import { fixNumeric } from "./fix-numeric"; import GymSet, { defaultSet } from "./gym-set"; import Settings from "./settings"; @@ -80,7 +80,7 @@ export default function EditExercise() { steps, created: now, }); - navigate("Exercises", { reset: new Date().getTime() }); + navigate("Exercises"); }; const save = async () => { diff --git a/EditExercises.tsx b/EditExercises.tsx index db4df6c..9d72495 100644 --- a/EditExercises.tsx +++ b/EditExercises.tsx @@ -16,7 +16,7 @@ import ConfirmDialog from "./ConfirmDialog"; import StackHeader from "./StackHeader"; import { MARGIN, PADDING } from "./constants"; import { planRepo, setRepo, settingsRepo } from "./db"; -import { DrawerParams } from "./drawer-param-list"; +import { DrawerParams } from "./drawer-params"; import { fixNumeric } from "./fix-numeric"; import Settings from "./settings"; import { toast } from "./toast"; diff --git a/EditPlan.tsx b/EditPlan.tsx index b0b7103..d27c4bb 100644 --- a/EditPlan.tsx +++ b/EditPlan.tsx @@ -21,7 +21,7 @@ import { StackParams } from "./AppStack"; import { MARGIN, PADDING } from "./constants"; import { DAYS } from "./days"; import { planRepo, setRepo } from "./db"; -import { DrawerParams } from "./drawer-param-list"; +import { DrawerParams } from "./drawer-params"; import GymSet, { defaultSet } from "./gym-set"; import StackHeader from "./StackHeader"; import Switch from "./Switch"; diff --git a/EditSet.tsx b/EditSet.tsx index 222ec12..f868f8a 100644 --- a/EditSet.tsx +++ b/EditSet.tsx @@ -22,7 +22,7 @@ import { StackParams } from "./AppStack"; import ConfirmDialog from "./ConfirmDialog"; import { MARGIN, PADDING } from "./constants"; import { getNow, setRepo, settingsRepo } from "./db"; -import { DrawerParams } from "./drawer-param-list"; +import { DrawerParams } from "./drawer-params"; import { fixNumeric } from "./fix-numeric"; import GymSet from "./gym-set"; import Settings from "./settings"; diff --git a/EditSets.tsx b/EditSets.tsx index c72e9b9..e15af92 100644 --- a/EditSets.tsx +++ b/EditSets.tsx @@ -17,7 +17,7 @@ import Select from "./Select"; import StackHeader from "./StackHeader"; import { MARGIN, PADDING } from "./constants"; import { setRepo, settingsRepo } from "./db"; -import { DrawerParams } from "./drawer-param-list"; +import { DrawerParams } from "./drawer-params"; import GymSet from "./gym-set"; import Settings from "./settings"; diff --git a/EditWeight.tsx b/EditWeight.tsx index ad00b50..198c8f2 100644 --- a/EditWeight.tsx +++ b/EditWeight.tsx @@ -16,7 +16,7 @@ import ConfirmDialog from "./ConfirmDialog"; import { MARGIN, PADDING } from "./constants"; import { AppDataSource } from "./data-source"; import { getNow, settingsRepo, weightRepo } from "./db"; -import { DrawerParams } from "./drawer-param-list"; +import { DrawerParams } from "./drawer-params"; import Settings from "./settings"; import StackHeader from "./StackHeader"; import { toast } from "./toast"; diff --git a/SettingsPage.tsx b/SettingsPage.tsx index 1be837a..dc027f4 100644 --- a/SettingsPage.tsx +++ b/SettingsPage.tsx @@ -16,7 +16,7 @@ import Switch from "./Switch"; import { PADDING } from "./constants"; import { AppDataSource } from "./data-source"; import { setRepo, settingsRepo } from "./db"; -import { DrawerParams } from "./drawer-param-list"; +import { DrawerParams } from "./drawer-params"; import { darkOptions, lightOptions, themeOptions } from "./options"; import Settings from "./settings"; import { toast } from "./toast"; diff --git a/drawer-param-list.ts b/drawer-params.ts similarity index 100% rename from drawer-param-list.ts rename to drawer-params.ts diff --git a/route.ts b/route.ts index 20844dc..776c7c6 100644 --- a/route.ts +++ b/route.ts @@ -1,4 +1,4 @@ -import { DrawerParams } from "./drawer-param-list"; +import { DrawerParams } from "./drawer-params"; export default interface Route { name: keyof DrawerParams;