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 1228271 commit 994ebae
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 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
2 changes: 1 addition & 1 deletion packages/ui/src/coreModules/user/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ export const getUser = state => {
return state.user
}

export const getUserName = state => {
export const getName = state => {
const user = getUser(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 994ebae

Please sign in to comment.