Skip to content

Commit b795c96

Browse files
author
Leandro Diato
committed
reverted whitespace changes
1 parent 33151f8 commit b795c96

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

dev-portal/src/components/NavBar.jsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { store } from 'services/state'
2525

2626
export const NavBar = observer(
2727
class NavBar extends React.Component {
28-
render() {
28+
render () {
2929
const email = store.user && store.user.email
3030
return <Menu inverted borderless attached style={{ flex: '0 0 auto' }} stackable>
3131
<MenuLink to='/'>
@@ -51,9 +51,9 @@ export const NavBar = observer(
5151
</div>
5252
</MenuLink>
5353
</> : <>
54-
<MenuLink to={getCognitoUrl('login')}>Sign In</MenuLink>
55-
<MenuLink to={getCognitoUrl('signup')}>Register</MenuLink>
56-
</>}
54+
<MenuLink to={getCognitoUrl('login')}>Sign In</MenuLink>
55+
<MenuLink to={getCognitoUrl('signup')}>Register</MenuLink>
56+
</>}
5757
</Menu.Menu>
5858
</Menu>
5959
}

dev-portal/src/pages/Apis.jsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ export default observer(class ApisPage extends React.Component {
2727
containerRef = React.createRef()
2828
hasRoot = false
2929

30-
componentDidMount() { this.updateApi(true) }
31-
componentDidUpdate() { this.updateApi(false) }
32-
componentWillUnmount() { this.containerRef = null }
30+
componentDidMount () { this.updateApi(true) }
31+
componentDidUpdate () { this.updateApi(false) }
32+
componentWillUnmount () { this.containerRef = null }
3333

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

79-
render() {
79+
render () {
8080
let errorHeader
8181
let errorBody
8282

dev-portal/src/services/self.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export function logout () {
156156
}
157157
}
158158

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

0 commit comments

Comments
 (0)