frst-components 0.21.40 → 0.21.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12818,7 +12818,7 @@ const ContentDescription = styled__default["default"].div `
|
|
|
12818
12818
|
const modalNewFeatures = ({ title = 'Novidades', open, onClose, onFinish, steps }) => {
|
|
12819
12819
|
const [numberCurrentStep, setNumberCurrentStep] = React.useState(0);
|
|
12820
12820
|
const [currentTopic, setCurrentTopic] = React.useState(steps[numberCurrentStep]);
|
|
12821
|
-
const isLastStep =
|
|
12821
|
+
const isLastStep = currentTopic === steps[steps.length - 1];
|
|
12822
12822
|
const labelButton = isLastStep ? 'Entendi' : 'Próximo';
|
|
12823
12823
|
const variantButton = isLastStep ? 'primary' : 'secondary';
|
|
12824
12824
|
const handleClickButtonNext = () => {
|