From f260dfdc8b5ef634ee7c41c21f9912a80847ac0e Mon Sep 17 00:00:00 2001 From: Jayasanka Date: Thu, 11 Apr 2019 14:10:27 +0530 Subject: [PATCH] changed layout of add nuw app in publisher --- .../pages/dashboard/add-new-app/AddNewApp.js | 65 +++++++++++++------ .../add-new-app/UploadScreenshots.js | 13 ++-- 2 files changed, 48 insertions(+), 30 deletions(-) diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/add-new-app/AddNewApp.js b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/add-new-app/AddNewApp.js index b53954fc90..83e1906da1 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/add-new-app/AddNewApp.js +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.publisher.ui/react-app/src/pages/dashboard/add-new-app/AddNewApp.js @@ -14,9 +14,10 @@ import { Input, Icon, Select, - Checkbox, + Switch, Form, - Upload + Upload, + Divider } from "antd"; import Step1 from "./Step1"; import Step2 from "./Step2"; @@ -44,7 +45,7 @@ const routes = [ const props = { name: 'file', - multiple: true, + multiple: false, action: '//jsonplaceholder.typicode.com/posts/', onChange(info) { const status = info.file.status; @@ -79,13 +80,15 @@ const InputGroup = Input.Group; const formItemLayout = { labelCol: { - span: 8, + span: 4, }, wrapperCol: { - span: 16, + span: 20, }, }; + + class EditableTagGroup extends React.Component { state = { tags: [], @@ -170,6 +173,12 @@ class AddNewApp extends React.Component { }; } + tags = []; + + addTag(key, value){ + this.tags.push(); + } + next() { const current = this.state.current + 1; this.setState({current}); @@ -184,6 +193,8 @@ class AddNewApp extends React.Component { render() { const {current} = this.state; const Content = steps[current].content; + this.addTag('1','Lorem'); + this.addTag('2','Ipsum'); return (
-
+ - - + + -