Skip to content

Commit

Permalink
login
Browse files Browse the repository at this point in the history
  • Loading branch information
zuiidea committed Jan 3, 2017
1 parent 87af30c commit 27ac1b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/components/ui/ico.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react'
import './ico.less'

const Ico = ({type}) => <span dangerouslySetInnerHTML={{
__html: `<svg class="ico" aria-hidden="true"><use xlink:href="#anticon-${type}"></use></svg>`
Expand Down
7 changes: 4 additions & 3 deletions src/models/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ export default {
yield put({
type: 'loginSuccess',
payload: {
data
user: {
name: payload.username
}
}})
} else {
yield put({
type: 'loginFail',
payload: {data}
type: 'loginFail'
})
}
},
Expand Down

0 comments on commit 27ac1b0

Please sign in to comment.