Skip to content

Commit

Permalink
fix-wow-export-blizz-pop (#498)
Browse files Browse the repository at this point in the history
* fix-wow-export-blizz-pop

* fix form selection

* improve label
  • Loading branch information
cohenaj194 authored Sep 12, 2024
1 parent 6114acb commit 97eac1f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions app/routes/wow.export-search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,16 @@ const ExportSearch = () => {
}
}}
/>
<InputWithLabel
labelTitle={inputMap.populationBlizz}
defaultValue={loaderData.populationBlizz}
<Select
title={inputMap.populationBlizz}
defaultValue={loaderData.populationBlizz.toString()}
name="populationBlizz"
type="number"
min={1}
options={[
{ label: 'FULL', value: '3' },
{ label: 'HIGH', value: '2' },
{ label: 'MEDIUM', value: '1' },
{ label: 'LOW', value: '0' }
]}
onChange={(e) => {
const value = e.currentTarget.value
if (value !== null || value !== undefined) {
Expand Down Expand Up @@ -411,7 +415,7 @@ const columnList: Array<ColumnList<ExportItem>> = [
{ columnId: 'minPrice', header: 'Minimum Price' },
{ columnId: 'itemQuantity', header: 'Item Quantity' },
{ columnId: 'realmPopulationReal', header: 'Realm Population' },
{ columnId: 'realmPopulationInt', header: 'Realm Pop Int' },
{ columnId: 'realmPopulationInt', header: 'Blizzard Realm Size' },
{ columnId: 'realmRanking', header: 'Realm Ranking' },
{
columnId: 'undermineLink',
Expand Down

0 comments on commit 97eac1f

Please sign in to comment.