Created
August 3, 2020 21:34
-
-
Save starsinmypockets/30aabf170c7e6813d353d3986bbe014c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
export class Navigation extends Component { | |
render() { | |
return ( | |
<div className='app_navigation' id='app_navigation'> | |
<div | |
className={`navsec ${this.props.currentStep === 1 ? 'active' : ''}`} | |
onClick={() => this.props.handleSteps(1)} | |
> | |
<label>Required Metadata</label> | |
</div> | |
<div | |
className={`navsec ${this.props.currentStep === 2 ? 'active' : ''}`} | |
onClick={() => { | |
this.props.formCount >= 1 ? this.props.handleSteps(2) : console.log('') | |
}} | |
> | |
<label>Additional Metadata</label> | |
</div> | |
<div | |
className={`navsec ${this.props.currentStep === 3 ? 'active' : ''}`} | |
onClick={() => { | |
this.props.formCount >= 2 ? this.props.handleSteps(3) : console.log('') | |
}} | |
> | |
<label>Resource Upload</label> | |
</div> | |
</div> | |
) | |
} | |
} | |
export default Navigation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment