Rename drawer-param-list -> drawer-params

This commit is contained in:
Brandon Presley 2023-11-15 11:08:00 +13:00
parent b68587f514
commit 6b168cccfe
11 changed files with 11 additions and 11 deletions

View File

@ -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<DrawerParams>();

View File

@ -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,

View File

@ -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 () => {

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -1,4 +1,4 @@
import { DrawerParams } from "./drawer-param-list";
import { DrawerParams } from "./drawer-params";
export default interface Route {
name: keyof DrawerParams;