revert : Added displayUsername and username update functionality
removes implemenation from #35699
This reverts commit e154f38118
.
This commit is contained in:
committed by
mrugesh
parent
0efaa4c3d7
commit
fdb17223ec
@@ -48,7 +48,6 @@ const propTypes = {
|
||||
files: PropTypes.array
|
||||
})
|
||||
),
|
||||
displayUsername: PropTypes.string,
|
||||
email: PropTypes.string,
|
||||
githubProfile: PropTypes.string,
|
||||
is2018DataVisCert: PropTypes.bool,
|
||||
@@ -122,7 +121,6 @@ export function ShowSettings(props) {
|
||||
toggleNightMode,
|
||||
user: {
|
||||
completedChallenges,
|
||||
displayUsername,
|
||||
email,
|
||||
is2018DataVisCert,
|
||||
isApisMicroservicesCert,
|
||||
@@ -193,12 +191,9 @@ export function ShowSettings(props) {
|
||||
</Button>
|
||||
</FullWidthRow>
|
||||
<Spacer />
|
||||
<h1
|
||||
className='text-center'
|
||||
style={{ overflowWrap: 'break-word' }}
|
||||
>{`Account Settings for ${
|
||||
displayUsername ? displayUsername : username
|
||||
}`}</h1>
|
||||
<h1 className='text-center' style={{ overflowWrap: 'break-word' }}>
|
||||
{`Account Settings for ${username}`}
|
||||
</h1>
|
||||
<About
|
||||
about={about}
|
||||
currentTheme={theme}
|
||||
@@ -208,7 +203,7 @@ export function ShowSettings(props) {
|
||||
points={points}
|
||||
submitNewAbout={submitNewAbout}
|
||||
toggleNightMode={toggleNightMode}
|
||||
username={displayUsername ? displayUsername : username}
|
||||
username={username}
|
||||
/>
|
||||
<Spacer />
|
||||
<Privacy />
|
||||
|
Reference in New Issue
Block a user