- updated bando form;
This commit is contained in:
@@ -1,20 +1,13 @@
|
||||
import React from 'react';
|
||||
import { range } from 'ramda';
|
||||
//import { __ } from '@wordpress/i18n';
|
||||
import { __ } from '@wordpress/i18n';
|
||||
|
||||
// components
|
||||
import { Steps } from 'primereact/steps';
|
||||
|
||||
const ApplicationSteps = ({ totalSteps = 0, activeStepIndex }) => {
|
||||
const rangeArr = range(1, totalSteps + 1);
|
||||
const items = rangeArr.map(() => ({ label: 'Passo' }));
|
||||
|
||||
/*// TODO update to using Steps after primereact is updated
|
||||
return(
|
||||
0 !== totalSteps
|
||||
? <span>{__('Passo', 'gepafin')}: {activeStepIndex + 1}</span>
|
||||
: null
|
||||
)*/
|
||||
const items = rangeArr.map(() => ({ label: __('Passo', 'gepafin') }));
|
||||
|
||||
return(
|
||||
0 !== totalSteps
|
||||
|
||||
Reference in New Issue
Block a user