File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 21
21
"react-router" : " ^4.2.0" ,
22
22
"react-router-dom" : " ^4.2.2" ,
23
23
"redux" : " ^3.7.2" ,
24
- "redux-thunk" : " ^2.2.0"
24
+ "redux-thunk" : " ^2.2.0" ,
25
+ "uiw" : " ^1.6.2"
25
26
},
26
27
"devDependencies" : {
27
28
"babel" : " ^6.23.0" ,
48
49
"extract-text-webpack-plugin" : " ^3.0.2" ,
49
50
"file-loader" : " ^1.1.6" ,
50
51
"html-webpack-plugin" : " ^2.30.1" ,
52
+ "less" : " ^2.7.3" ,
53
+ "less-loader" : " ^4.0.5" ,
51
54
"node-sass" : " ^4.7.2" ,
52
55
"pm2" : " ^2.9.1" ,
53
56
"react-transform-hmr" : " ^1.0.4" ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from 'react'
2
2
import { connect } from 'react-redux'
3
3
import propTypes from 'prop-types'
4
4
import { bindActionCreators } from 'redux'
5
+ import { Button } from 'uiw'
5
6
import * as action from './redux/action'
6
7
import './redux/reducer'
7
8
class Home extends React . Component {
@@ -32,9 +33,9 @@ class Home extends React.Component {
32
33
< div >
33
34
home< br /> < br />
34
35
< h1 > { this . state . count } </ h1 >
35
- < button onClick = { this . add } > +</ button > < br /> < br />
36
- < button onClick = { this . decrease } > -</ button > < br /> < br />
37
- < button onClick = { this . asyncAction } > -</ button > < br /> < br />
36
+ < Button type = "primary" onClick = { this . add } > +</ Button > < br /> < br />
37
+ < Button type = "primary" onClick = { this . decrease } > -</ Button > < br /> < br />
38
+ < Button type = "primary" onClick = { this . asyncAction } > -</ Button > < br /> < br />
38
39
{ this . state . dataone ? this . state . dataone . companyName : '' } < br /> < br />
39
40
{ this . state . dataone ? this . state . dataone . identifyNo : '' } < br /> < br />
40
41
{ this . state . dataone ? this . state . dataone . isCfcaUser : '' } < br /> < br />
Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ module.exports = {
28
28
exclude : / n o d e _ m o d u l e s / ,
29
29
loader : 'eslint-loader'
30
30
} ,
31
+ {
32
+ test : / \. ( l e s s | c s s ) $ / ,
33
+ use : extractSass . extract ( {
34
+ use : [ 'style-loader' , 'css-loader' , 'less-loader' ]
35
+ } )
36
+ } ,
31
37
{
32
38
test : / \. j s $ / ,
33
39
exclude : / ( n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s ) / ,
You can’t perform that action at this time.
0 commit comments