Skip to content

Commit

Permalink
Excluindo arquivos de teste do filtro
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermemoraisr committed Apr 12, 2022
1 parent 49b8ad2 commit 894c3d6
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions stag.io/src/components/filtro.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: ""
};
Expand Down Expand Up @@ -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;
Expand All @@ -73,7 +65,7 @@ class Filtro extends Component {
value={this.state.vaga}
onChange={this.handleChangeVaga}
>
{uniqueCouse.map(vaga => (
{uniqueVaga.map(vaga => (
<option key={vaga.id} value={vaga.tag}>
{vaga.tag}
</option>
Expand Down

0 comments on commit 894c3d6

Please sign in to comment.