From 894c3d6a7fe1ca9a3145ab31de33142d3cbee542 Mon Sep 17 00:00:00 2001 From: Guilherme de Morais Richter Date: Tue, 12 Apr 2022 18:34:42 -0300 Subject: [PATCH] Excluindo arquivos de teste do filtro --- stag.io/src/components/filtro.jsx | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/stag.io/src/components/filtro.jsx b/stag.io/src/components/filtro.jsx index d55c989..029aa8e 100644 --- a/stag.io/src/components/filtro.jsx +++ b/stag.io/src/components/filtro.jsx @@ -7,12 +7,6 @@ class Filtro extends Component { constructor(props) { super(props); this.state = { - value: "coconut", - countries: [ - { id: "1", country: "Cambodia" }, - { id: "2", country: "Australia" }, - { id: "3", country: "US" } - ], vagas: [], vaga: "" }; @@ -48,10 +42,8 @@ class Filtro extends Component { } render() { - const countries = require("../data/countries.json"); - const uniqueCountry = this.getUnique(countries.world, "country"); - const uniqueCouse = this.getUnique(this.state.vagas, "tag"); + const uniqueVaga = this.getUnique(this.state.vagas, "tag"); const vagas = this.state.vagas; const vaga = this.state.vaga; @@ -73,7 +65,7 @@ class Filtro extends Component { value={this.state.vaga} onChange={this.handleChangeVaga} > - {uniqueCouse.map(vaga => ( + {uniqueVaga.map(vaga => (