add fix nav param and rename to useRecordingDetails for consistency
This commit is contained in:
parent
63faa9397e
commit
fe824f90ef
@ -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,
|
||||
});
|
||||
|
@ -54,7 +54,7 @@ function useDropdown<T>(
|
||||
};
|
||||
}
|
||||
|
||||
export const useVideoDetails = ({
|
||||
export const useRecordingDetails = ({
|
||||
params: {
|
||||
mode,
|
||||
videoId,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user