Commit bc1708d0 authored by PDuarte's avatar PDuarte

adding plaform to layout menu

parent 3a84115e
...@@ -25,7 +25,8 @@ const Tables = () => { ...@@ -25,7 +25,8 @@ const Tables = () => {
dispatch( dispatch(
addlayoutmenu({ addlayoutmenu({
name: values.name, name: values.name,
slug: values.slug slug: values.slug,
platforms: values.platforms
}) })
) )
...@@ -46,10 +47,11 @@ const Tables = () => { ...@@ -46,10 +47,11 @@ const Tables = () => {
<h4 className="card-title">New {moduleSettings.mainTitleSingle}</h4> <h4 className="card-title">New {moduleSettings.mainTitleSingle}</h4>
</div> </div>
<div className="card-body"> <div className="card-body">
<ElementCard selectedProject={{ <ElementCard selectedElement={{
id: '<generate>', id: '<generate>',
name: '', name: '',
slug: '' slug: '',
platforms: []
}} }}
onSubmitHandler={onSubmitHandler} onSubmitHandler={onSubmitHandler}
/> />
......
...@@ -20,6 +20,8 @@ import classnames from 'classnames' ...@@ -20,6 +20,8 @@ import classnames from 'classnames'
import Swal from 'sweetalert2' import Swal from 'sweetalert2'
import withReactContent from 'sweetalert2-react-content' import withReactContent from 'sweetalert2-react-content'
import ElementPlatform from './plataform'
const SuccessProgressToast = () => ( const SuccessProgressToast = () => (
<Fragment> <Fragment>
...@@ -144,25 +146,9 @@ return ( ...@@ -144,25 +146,9 @@ return (
/> />
</FormGroup> </FormGroup>
</Col> </Col>
{/* <Col md='4' sm='12'> <Col sm='12'>
<FormGroup> <ElementPlatform dataElement={dataElement} setElement={setElementData} store={store} />
<Label for='email'>Email</Label> </Col>
<Input disabled='disabled' type='text' id='email' placeholder='Email' defaultValue={ProjectData && ProjectData.email} />
</FormGroup>
</Col> */}
{/* <Col md='4' sm='12'>
<FormGroup>
<Label for='name'>Name</Label>
<Input type='select' name='name' id='name' defaultValue={dataElement && dataElement.name} onChange={e => setPlatformName(e.target.value)}>
<option value='Web'>Web</option>
<option value='iOS Phone'>iOS Phone</option>
<option value='iOS Tablet'>iOS Tablet</option>
<option value='Android Phone'>Android Phone</option>
<option value='Android Tablet'>Android Tablet</option>
</Input>
</FormGroup>
</Col> */}
<Col className='d-flex flex-sm-row flex-column mt-2' sm='12'> <Col className='d-flex flex-sm-row flex-column mt-2' sm='12'>
<Button.Ripple className='mb-1 mb-sm-0 mr-0 mr-sm-1' type='submit' color='primary'> <Button.Ripple className='mb-1 mb-sm-0 mr-0 mr-sm-1' type='submit' color='primary'>
......
This diff is collapsed.
...@@ -23,9 +23,11 @@ const ElementEdit = () => { ...@@ -23,9 +23,11 @@ const ElementEdit = () => {
const onSubmitHandler = values => { const onSubmitHandler = values => {
dispatch( dispatch(
updateLayoutMenu({ updateLayoutMenu({
...dataElement,
id: values.id, id: values.id,
name: values.name, name: values.name,
slug: values.slug slug: values.slug,
platforms: values.platforms
}) })
) )
......
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