Skip to content

Commit

Permalink
reverted whitespace changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Leandro Diato committed Oct 13, 2021
1 parent 33151f8 commit b795c96
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions dev-portal/src/components/NavBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { store } from 'services/state'

export const NavBar = observer(
class NavBar extends React.Component {
render() {
render () {
const email = store.user && store.user.email
return <Menu inverted borderless attached style={{ flex: '0 0 auto' }} stackable>
<MenuLink to='/'>
Expand All @@ -51,9 +51,9 @@ export const NavBar = observer(
</div>
</MenuLink>
</> : <>
<MenuLink to={getCognitoUrl('login')}>Sign In</MenuLink>
<MenuLink to={getCognitoUrl('signup')}>Register</MenuLink>
</>}
<MenuLink to={getCognitoUrl('login')}>Sign In</MenuLink>
<MenuLink to={getCognitoUrl('signup')}>Register</MenuLink>
</>}
</Menu.Menu>
</Menu>
}
Expand Down
10 changes: 5 additions & 5 deletions dev-portal/src/pages/Apis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export default observer(class ApisPage extends React.Component {
containerRef = React.createRef()
hasRoot = false

componentDidMount() { this.updateApi(true) }
componentDidUpdate() { this.updateApi(false) }
componentWillUnmount() { this.containerRef = null }
componentDidMount () { this.updateApi(true) }
componentDidUpdate () { this.updateApi(false) }
componentWillUnmount () { this.containerRef = null }

updateApi(isInitial) {
updateApi (isInitial) {
return getApi(this.props.match.params.apiId || 'ANY', true, this.props.match.params.stage, isInitial)
.then(api => {
if (this.containerRef == null) return
Expand Down Expand Up @@ -76,7 +76,7 @@ export default observer(class ApisPage extends React.Component {
window.location = getCognitoUrl('login');
}

render() {
render () {
let errorHeader
let errorBody

Expand Down
2 changes: 1 addition & 1 deletion dev-portal/src/services/self.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export function logout () {
}
}

export function getCognitoUrl(type) {
export function getCognitoUrl (type) {
const redirectUri = getLoginRedirectUrl()
return `${cognitoDomain}/${type}?response_type=token&client_id=${cognitoClientId}&redirect_uri=${redirectUri}`
}

0 comments on commit b795c96

Please sign in to comment.