Browse Source

fix(lint): fix some linty errors

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
a0f28ecfbc
  1. 6
      app/components/Onboarding/FormContainer.js
  2. 12
      app/components/Onboarding/Onboarding.js
  3. 1
      app/containers/Root.js

6
app/components/Onboarding/FormContainer.js

@ -45,6 +45,12 @@ const FormContainer = ({ title, description, back, next, children }) => {
}
FormContainer.propTypes = {
title: PropTypes.string.isRequired,
description: PropTypes.string.isRequired,
back: PropTypes.func,
next: PropTypes.func,
children: PropTypes.object.isRequired
}

12
app/components/Onboarding/Onboarding.js

@ -3,9 +3,10 @@ import PropTypes from 'prop-types'
import Isvg from 'react-inlinesvg'
import zapLogo from 'icons/zap_logo.svg'
import LoadingBolt from 'components/LoadingBolt'
import FormContainer from './FormContainer'
import Alias from './Alias'
import Syncing from './Syncing'
import styles from './Onboarding.scss'
@ -17,8 +18,7 @@ class Onboarding extends Component {
alias
},
submit,
aliasProps,
syncingProps
aliasProps
} = this.props
const renderStep = () => {
@ -35,7 +35,7 @@ class Onboarding extends Component {
</FormContainer>
)
default:
return <Syncing {...syncingProps} />
return <LoadingBolt />
}
}
@ -48,7 +48,9 @@ class Onboarding extends Component {
}
Onboarding.propTypes = {
syncingProps: PropTypes.object.isRequired
onboarding: PropTypes.object.isRequired,
aliasProps: PropTypes.object.isRequired,
submit: PropTypes.func.isRequired
}
export default Onboarding

1
app/containers/Root.js

@ -66,7 +66,6 @@ const Root = ({
onboarding={onboarding}
submit={submit}
aliasProps={aliasProps}
syncingProps={syncingProps}
/>
)
}

Loading…
Cancel
Save