diff --git a/src/routes/Publish/Progress.tsx b/src/routes/Publish/Progress.tsx new file mode 100644 index 0000000..91e6cb3 --- /dev/null +++ b/src/routes/Publish/Progress.tsx @@ -0,0 +1,26 @@ +import React from 'react' + +const Progress = ({ + currentStep, + totalSteps, + steps +}: { + currentStep: number + totalSteps: number + steps: any[] +}) => { + return ( + + ) +} + +export default Progress diff --git a/src/routes/Publish/index.tsx b/src/routes/Publish/index.tsx index 3583534..f035ec5 100644 --- a/src/routes/Publish/index.tsx +++ b/src/routes/Publish/index.tsx @@ -5,6 +5,7 @@ import Form from '../../components/atoms/Form/Form' import AssetModel from '../../models/AssetModel' import Web3message from '../../components/Web3message' import Step from './Step' +import Progress from './Progress' import form from '../../data/form-publish.json' @@ -169,7 +170,11 @@ class Publish extends Component<{}, PublishState> { this.publishedState() ) : ( <> -

Step {this.state.currentStep}

+
{form.steps.map((step: any, index: number) => (