Skip to content

Instantly share code, notes, and snippets.

@starsinmypockets
Created August 3, 2020 21:34
Show Gist options
  • Save starsinmypockets/30aabf170c7e6813d353d3986bbe014c to your computer and use it in GitHub Desktop.
Save starsinmypockets/30aabf170c7e6813d353d3986bbe014c to your computer and use it in GitHub Desktop.
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