Skip to content

Commit b3c8b78

Browse files
committed
cleaned formatting
1 parent 98349a4 commit b3c8b78

2 files changed

Lines changed: 19 additions & 23 deletions

File tree

server/routes/api/representatives.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const JURISDICTION_FILTER_MAP = {
1212
federal: ['NATIONAL_UPPER', 'NATIONAL_LOWER'],
1313
state: ['STATE_EXEC', 'STATE_UPPER', 'STATE_LOWER'],
1414
county: ['COUNTY'],
15-
local: ['LOCAL_EXEC','LOCAL'],
15+
local: ['LOCAL_EXEC', 'LOCAL'],
1616
school: ['SCHOOL']
1717
}
1818
const ALLOWED_JURISDICTION_FILTERS = Object.keys(JURISDICTION_FILTER_MAP)
@@ -41,7 +41,7 @@ router.get('/:zipCode', async (req, res) => {
4141
}
4242

4343
try {
44-
const params = {
44+
const params = {
4545
search_postal: zipCode,
4646
search_country: 'US',
4747
order: 'district_type', // https://cicero.azavea.com/docs/#order-by-district-type
@@ -52,7 +52,7 @@ router.get('/:zipCode', async (req, res) => {
5252
}
5353

5454
if (filter != null) {
55-
params.district_type = JURISDICTION_FILTER_MAP[filter]
55+
params.district_type = JURISDICTION_FILTER_MAP[filter]
5656
}
5757

5858
const {

src/components/SearchReps.vue

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<template lang="html">
22
<section class="search-reps">
3-
43
<v-container fluid>
54
<v-row class="justify-center">
65
<v-col cols="12" sm="6" md="4">
@@ -47,22 +46,20 @@
4746
>
4847
State
4948
</v-btn>
50-
49+
5150
<v-btn
5251
rounded
5352
dark
5453
class="ui button toggle search-reps-button"
5554
:style="{
5655
backgroundColor:
57-
currentFilter === 'local' && isActive
58-
? 'blue'
59-
: 'gray'
56+
currentFilter === 'local' && isActive ? 'blue' : 'gray'
6057
}"
6158
@click="FilterList('local')"
6259
>
6360
Local
6461
</v-btn>
65-
62+
6663
<v-btn
6764
class="search-reps-button"
6865
rounded
@@ -76,21 +73,20 @@
7673
>
7774
County
7875
</v-btn>
79-
76+
8077
<v-btn
81-
class="search-reps-button"
82-
rounded
83-
dark
84-
:class="{ active: isActive }"
85-
:style="{
86-
backgroundColor:
87-
currentFilter === 'school' && isActive ? 'blue' : 'gray'
88-
}"
89-
v-on:click="FilterList('school')"
90-
>
91-
School
92-
</v-btn>
93-
78+
class="search-reps-button"
79+
rounded
80+
dark
81+
:class="{ active: isActive }"
82+
:style="{
83+
backgroundColor:
84+
currentFilter === 'school' && isActive ? 'blue' : 'gray'
85+
}"
86+
v-on:click="FilterList('school')"
87+
>
88+
School
89+
</v-btn>
9490
</v-col>
9591
</v-row>
9692

0 commit comments

Comments
 (0)