add fix nav param and rename to useRecordingDetails for consistency

This commit is contained in:
Loewy 2024-02-21 13:48:09 -08:00
parent 63faa9397e
commit fe824f90ef
3 changed files with 4 additions and 4 deletions

View File

@ -155,7 +155,7 @@ export default function CameraScreen({
const onMediaCaptured = useCallback(
(media: PhotoFile | VideoFile) => {
console.log(`Media captured! ${JSON.stringify(media)}`);
navigation.push("SaveVideo", {
navigation.push("SaveRecording", {
videoId: uploadManager?.videoId,
...params,
});

View File

@ -54,7 +54,7 @@ function useDropdown<T>(
};
}
export const useVideoDetails = ({
export const useRecordingDetails = ({
params: {
mode,
videoId,

View File

@ -9,7 +9,7 @@ import {
View,
} from "react-native";
import DropDownPicker from "react-native-dropdown-picker";
import { useVideoDetails } from "../../component/recording/use-recording-details";
import { useRecordingDetails } from "../../component/recording/use-recording-details";
import { globalInputStyles } from "../../styles";
import { recordStyles as styles } from "./styles";
@ -22,7 +22,7 @@ export default function VideoDetails({ navigation, route }): React.JSX.Element {
tableSize,
handleSubmit,
loading,
} = useVideoDetails({ params: route.params, navigation });
} = useRecordingDetails({ params: route.params, navigation });
const dropDownStyles = {
style: globalInputStyles.dropdownStyle,