Browse Source

added color management for create popup

Skylsmoi 6 years ago
parent
commit
dc0eb62b23
3 changed files with 9 additions and 11 deletions
  1. 1 2
      src/container/PopupCreateHtmlDocument.jsx
  2. 0 1
      src/helper.js
  3. 8 8
      src/index.dev.js

+ 1 - 2
src/container/PopupCreateHtmlDocument.jsx View File

13
     creationLabel: 'Write a document',
13
     creationLabel: 'Write a document',
14
     domContainer: 'appContainer',
14
     domContainer: 'appContainer',
15
     apiUrl: 'http://localhost:3001',
15
     apiUrl: 'http://localhost:3001',
16
-    mockApiUrl: 'http://localhost:8071',
17
     apiHeader: {
16
     apiHeader: {
18
       'Accept': 'application/json',
17
       'Accept': 'application/json',
19
       'Content-Type': 'application/json',
18
       'Content-Type': 'application/json',
85
         onClose={this.handleClose}
84
         onClose={this.handleClose}
86
         onValidate={this.handleValidate}
85
         onValidate={this.handleValidate}
87
         label={this.state.config.label} // @TODO get the lang of user
86
         label={this.state.config.label} // @TODO get the lang of user
88
-        hexcolor={this.state.config.hexcolor}
87
+        customColor={this.state.config.hexcolor}
89
         faIcon={this.state.config.faIcon}
88
         faIcon={this.state.config.faIcon}
90
         contentName={this.state.newContentName}
89
         contentName={this.state.newContentName}
91
         onChangeContentName={this.handleChangeNewContentName}
90
         onChangeContentName={this.handleChangeNewContentName}

+ 0 - 1
src/helper.js View File

22
     creationLabel: 'Write a document',
22
     creationLabel: 'Write a document',
23
     domContainer: 'appContainer',
23
     domContainer: 'appContainer',
24
     apiUrl: 'http://localhost:6543/api/v2',
24
     apiUrl: 'http://localhost:6543/api/v2',
25
-    mockApiUrl: 'http://localhost:3001',
26
     apiHeader: {
25
     apiHeader: {
27
       'Accept': 'application/json',
26
       'Accept': 'application/json',
28
       'Content-Type': 'application/json'
27
       'Content-Type': 'application/json'

+ 8 - 8
src/index.dev.js View File

1
 import React from 'react'
1
 import React from 'react'
2
 import ReactDOM from 'react-dom'
2
 import ReactDOM from 'react-dom'
3
-import HtmlDocument from './container/HtmlDocument.jsx'
4
-// import PopupCreateHtmlDocument from './container/PopupCreateHtmlDocument.jsx'
3
+// import HtmlDocument from './container/HtmlDocument.jsx'
4
+import PopupCreateHtmlDocument from './container/PopupCreateHtmlDocument.jsx'
5
 
5
 
6
 require('./css/index.styl')
6
 require('./css/index.styl')
7
 
7
 
8
-ReactDOM.render(
9
-  <HtmlDocument data={undefined} />
10
-  , document.getElementById('content')
11
-)
12
-
13
 // ReactDOM.render(
8
 // ReactDOM.render(
14
-//   <PopupCreateHtmlDocument />
9
+//   <HtmlDocument data={undefined} />
15
 //   , document.getElementById('content')
10
 //   , document.getElementById('content')
16
 // )
11
 // )
12
+
13
+ReactDOM.render(
14
+  <PopupCreateHtmlDocument />
15
+  , document.getElementById('content')
16
+)