Skip to content

Commit

Permalink
feat: dropdown component done
Browse files Browse the repository at this point in the history
dropdown component done

BREAKING CHANGE: dropdown component done

feat devhatt#47
  • Loading branch information
DominMFD committed Feb 9, 2024
1 parent dc9d61e commit 3b2d3e9
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions src/home/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { extractElements } from 'pet-dex-utilities';
import Navigation from './components/navigation';
import NoPetRegirestedPage from './components/NoPetRegirestedPage';
import SideMenu from './components/SideMenu';
import DropDown from '../components/Dropdown';
import './index.scss';

document.addEventListener('DOMContentLoaded', () => {
Expand All @@ -17,28 +16,6 @@ document.addEventListener('DOMContentLoaded', () => {
navigation.mount($navigation);

const $content = selected.get('content');
// const noPetRegirestedPage = new NoPetRegirestedPage();
// noPetRegirestedPage.mount($content);

const exemplo = [
{
label: 'Raiva',
value: 'raiva',
},
{
label: 'Soninho',
value: 'soninho',
},
{
label: 'Bom dia',
value: 'bomdia',
},
];

const dropDown = new DropDown(exemplo);
dropDown.listen('selected', (valor) => {
// eslint-disable-next-line no-console
console.log(valor);
});
dropDown.mount($content);
const noPetRegirestedPage = new NoPetRegirestedPage();
noPetRegirestedPage.mount($content);
});

0 comments on commit 3b2d3e9

Please sign in to comment.