Commit 7cd6a131 authored by PDuarte's avatar PDuarte

add asset imagery

parent d25edad2
...@@ -21,7 +21,7 @@ import '@styles/react/libs/tables/react-dataTable-component.scss' ...@@ -21,7 +21,7 @@ import '@styles/react/libs/tables/react-dataTable-component.scss'
const Tables = () => { const Tables = () => {
const dispatch = useDispatch() const dispatch = useDispatch()
const onSubmitHandler = values => { const onSubmitHandler = (values, uploadFile) => {
dispatch( dispatch(
addasset({ addasset({
projectid: values.projectid, projectid: values.projectid,
...@@ -32,7 +32,8 @@ const Tables = () => { ...@@ -32,7 +32,8 @@ const Tables = () => {
textual: values.textual, textual: values.textual,
availability: values.availability, availability: values.availability,
genres: values.genres, genres: values.genres,
subgenres: values.subgenres subgenres: values.subgenres,
data: uploadFile
} }
) )
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment