WIP Changes

This commit is contained in:
Patrick Fic
2021-03-09 14:32:44 -08:00
parent 106606b495
commit 530502169e
2 changed files with 1 additions and 41 deletions

View File

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

View File

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