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,7 +13,6 @@ const debug = { // outdated
13 13
     creationLabel: 'Write a document',
14 14
     domContainer: 'appContainer',
15 15
     apiUrl: 'http://localhost:3001',
16
-    mockApiUrl: 'http://localhost:8071',
17 16
     apiHeader: {
18 17
       'Accept': 'application/json',
19 18
       'Content-Type': 'application/json',
@@ -85,7 +84,7 @@ class PopupCreateHtmlDocument extends React.Component {
85 84
         onClose={this.handleClose}
86 85
         onValidate={this.handleValidate}
87 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 88
         faIcon={this.state.config.faIcon}
90 89
         contentName={this.state.newContentName}
91 90
         onChangeContentName={this.handleChangeNewContentName}

+ 0 - 1
src/helper.js View File

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

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

@@ -1,16 +1,16 @@
1 1
 import React from 'react'
2 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 6
 require('./css/index.styl')
7 7
 
8
-ReactDOM.render(
9
-  <HtmlDocument data={undefined} />
10
-  , document.getElementById('content')
11
-)
12
-
13 8
 // ReactDOM.render(
14
-//   <PopupCreateHtmlDocument />
9
+//   <HtmlDocument data={undefined} />
15 10
 //   , document.getElementById('content')
16 11
 // )
12
+
13
+ReactDOM.render(
14
+  <PopupCreateHtmlDocument />
15
+  , document.getElementById('content')
16
+)