1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-15 02:36:36 +00:00

User name change and modify style

This commit is contained in:
Rokt33r
2015-12-03 05:32:10 +09:00
parent 96a8687896
commit 1a11095121
8 changed files with 132 additions and 21 deletions

View File

@@ -62,7 +62,7 @@ class Preferences extends React.Component {
}
renderContent () {
let { folders, dispatch } = this.props
let { user, folders, dispatch } = this.props
switch (this.state.currentTab) {
case HELP:
@@ -80,12 +80,20 @@ class Preferences extends React.Component {
)
case APP:
default:
return (<AppSettingTab/>)
return (
<AppSettingTab
user={user}
dispatch={dispatch}
/>
)
}
}
}
Preferences.propTypes = {
user: PropTypes.shape({
name: PropTypes.string
}),
folders: PropTypes.array,
dispatch: PropTypes.func
}
@@ -93,9 +101,10 @@ Preferences.propTypes = {
Preferences.prototype.linkState = linkState
function remap (state) {
let { folders, status } = state
let { user, folders, status } = state
return {
user,
folders,
status
}