Skip to content

Commit

Permalink
fix: add semicolon
Browse files Browse the repository at this point in the history
  • Loading branch information
juliaam committed May 8, 2024
1 parent 1f079bc commit 3b87159
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/home/components/PetvetPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const html = `
</div>
`;

const events = ['value']
const events = ['value'];

export default function PetVetPage() {
Component.call(this, { html, events });
Expand All @@ -90,13 +90,15 @@ export default function PetVetPage() {

$inputText.classList.add('petvet-page__input-text');
$button.classList.add('petvet-page__button');
$container.querySelector('.petvet-page__card-content.cuidados-especiais').appendChild($inputText);
$container
.querySelector('.petvet-page__card-content.cuidados-especiais')
.appendChild($inputText);

const emitForm = () => {
const formValue = {
specialCareText: $inputText.value,
isSpecialCare: false,
isRegistered: false
isRegistered: false,
// aguardando componente de input
};
this.emit('value', formValue);
Expand All @@ -105,7 +107,4 @@ export default function PetVetPage() {
this.button.listen('click', emitForm);
}

PetVetPage.prototype = Object.assign(
PetVetPage.prototype,
Component.prototype,
);
PetVetPage.prototype = Object.assign(PetVetPage.prototype, Component.prototype);

0 comments on commit 3b87159

Please sign in to comment.