WIP Changes
This commit is contained in:
@@ -1,40 +0,0 @@
|
||||
import React from "react";
|
||||
import { Text, View } from "react-native";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { setCameraJob, setCameraJobId } from "../../redux/app/app.actions";
|
||||
import { selectCurrentCameraJobId } from "../../redux/app/app.selectors";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop,
|
||||
cameraJobId: selectCurrentCameraJobId,
|
||||
});
|
||||
|
||||
const mapDispatchToProps = (dispatch) => ({
|
||||
setCameraJobId: (id) => dispatch(setCameraJobId(id)),
|
||||
setCameraJob: (job) => dispatch(setCameraJob(job)),
|
||||
});
|
||||
|
||||
export function ScreenMediaBrowserTop({
|
||||
bodyshop,
|
||||
cameraJobId,
|
||||
onFinish,
|
||||
...props
|
||||
}) {
|
||||
console.log("Props", props);
|
||||
return (
|
||||
<View
|
||||
style={{
|
||||
marginHorizontal: 10,
|
||||
}}
|
||||
>
|
||||
<Text>Test</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
mapDispatchToProps
|
||||
)(ScreenMediaBrowserTop);
|
||||
@@ -58,8 +58,8 @@ export function ImageBrowserScreen({
|
||||
}
|
||||
|
||||
const onDone = async (data) => {
|
||||
const actions = [];
|
||||
console.log("Assets :>> ", data);
|
||||
const actions = [];
|
||||
data.forEach(function (p) {
|
||||
const uri = p.uri.split("/").pop();
|
||||
actions.push(
|
||||
|
||||
Reference in New Issue
Block a user