From 5ebcda319e43ae465536ea4470e1bc4a9faf2019 Mon Sep 17 00:00:00 2001 From: juliaam Date: Fri, 26 Jul 2024 18:25:59 -0300 Subject: [PATCH] fix: pr comments --- src/components/AddPet/index.js | 31 +++++++++++++------------------ src/components/AddPet/index.scss | 6 +++--- 2 files changed, 16 insertions(+), 21 deletions(-) diff --git a/src/components/AddPet/index.js b/src/components/AddPet/index.js index cbb94345..1e67f65b 100644 --- a/src/components/AddPet/index.js +++ b/src/components/AddPet/index.js @@ -1,20 +1,17 @@ import { Component } from 'pet-dex-utilities'; -import './index.scss'; + +import Sliding from '../Sliding'; +import ProgressBar from '../ProgressBar'; + import PetVetPage from '../../layouts/app/pages/PetVet'; import PetWeight from '../../layouts/app/pages/PetWeight'; import PetRegister from '../../layouts/app/pages/PetRegister'; + import arrowLeft from './assets/arrow-left.svg'; -import akita from './assets/akita.svg'; -import Sliding from '../Sliding'; -import ProgressBar from '../ProgressBar'; -const cards = [ - { - title: 'Akita', - imgSrc: akita, - imgAlt: 'akita', - }, -]; +import './index.scss'; + +const cards = []; const steps = new Map(); steps.set(1, 'Petraça'); @@ -59,7 +56,6 @@ export default function AddPet() { const $previousStep = this.selected.get('previous-step'); this.$stepsName = this.selected.get('step-name'); this.$firstStep = this.selected.get('first-step'); - this.$lastStep = this.selected.get('last-step'); this.progressBar = new ProgressBar(1, pages.length, 1); this.progressBar.selected @@ -89,22 +85,21 @@ export default function AddPet() { } AddPet.prototype = Object.assign(AddPet.prototype, Component.prototype, { - updateStep(actualStep, endingStep) { + updateStep(actualStep) { this.actualStep = actualStep; this.$stepsName = steps.get(actualStep); this.$firstStep.textContent = actualStep; - this.$lastStep.textContent = endingStep; }, - nextStep(actualStep, endingStep) { + nextStep(actualStep) { this.sliding.next(); this.progressBar.next(); - this.updateStep(actualStep + 1, endingStep); + this.updateStep(actualStep + 1); }, - backStep(actualStep, endingStep) { + backStep(actualStep) { if (this.sliding.slideIndex >= 1) { this.sliding.previous(); this.progressBar.prev(); - this.updateStep(actualStep - 1, endingStep); + this.updateStep(actualStep - 1); } }, }); diff --git a/src/components/AddPet/index.scss b/src/components/AddPet/index.scss index 5870666d..192bc30f 100644 --- a/src/components/AddPet/index.scss +++ b/src/components/AddPet/index.scss @@ -19,7 +19,7 @@ &__title { font-family: fonts.$sixthFont; - font-size: 1.6rem; + font-size: fonts.$sm; font-weight: fonts.$semiBold; } @@ -39,7 +39,7 @@ font-family: fonts.$fourthFont; color: colors.$gray800; - font-size: 1.6rem; + font-size: fonts.$sm; font-weight: fonts.$regular; line-height: 1.6; @@ -78,7 +78,7 @@ } &__subtitle { - font-size: 1.6rem; + font-size: fonts.$sm; font-weight: fonts.$regular; } }