Skip to content

Commit

Permalink
[UI] Change getUserName to getUsername
Browse files Browse the repository at this point in the history
  • Loading branch information
idali0226 committed Dec 3, 2018
1 parent 7251bb4 commit ef3a0a1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const ModuleTranslate = createModuleTranslate('commonUi')

const mapStateToProps = state => {
return {
username: userSelectors.getUserName(state),
username: userSelectors.getUsername(state),
}
}

Expand Down
1 change: 1 addition & 0 deletions packages/ui/src/coreModules/user/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const getName = state => {
return (user && user.name) || null
}

export const getUsername = state => {
const user = getUser(state)
return (user && user.username) || null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import BaseForm from './Base'

const mapStateToProps = state => {
return {
username: userSelectors.getUserName(state),
username: userSelectors.getUsername(state),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import BaseForm from './Base'

const mapStateToProps = state => {
return {
username: userSelectors.getUserName(state),
username: userSelectors.getUsername(state),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import BaseForm from './Base'

const mapStateToProps = state => {
return {
username: userSelectors.getUserName(state),
username: userSelectors.getUsername(state),
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import BaseForm from './Base'

const mapStateToProps = state => {
return {
username: userSelectors.getUserName(state),
username: userSelectors.getUsername(state),
}
}

Expand Down

0 comments on commit ef3a0a1

Please sign in to comment.