Remove default filterset
This was moved to a utils/ file
This commit is contained in:
parent
87cbd00ac2
commit
d536c7834d
1 changed files with 1 additions and 25 deletions
|
|
@ -33,30 +33,6 @@ interface Props {
|
||||||
}) => void
|
}) => void
|
||||||
}
|
}
|
||||||
|
|
||||||
const DEFAULT_FULL_AUTO = false
|
|
||||||
const DEFAULT_AUTO_GUARD = false
|
|
||||||
const DEFAULT_CHARGE_ATTACK = false
|
|
||||||
const DEFAULT_MAX_BUTTONS = 0
|
|
||||||
const DEFAULT_MAX_TURNS = 0
|
|
||||||
const DEFAULT_MIN_CHARACTERS = 3
|
|
||||||
const DEFAULT_MIN_WEAPONS = 5
|
|
||||||
const DEFAULT_MIN_SUMMONS = 2
|
|
||||||
const DEFAULT_NAME_QUALITY = false
|
|
||||||
const DEFAULT_USER_QUALITY = false
|
|
||||||
const DEFAULT_ORIGINAL_ONLY = false
|
|
||||||
|
|
||||||
const DEFAULT_FILTERSET: FilterSet = {
|
|
||||||
full_auto: DEFAULT_FULL_AUTO,
|
|
||||||
auto_guard: DEFAULT_AUTO_GUARD,
|
|
||||||
charge_attack: DEFAULT_CHARGE_ATTACK,
|
|
||||||
characters_count: DEFAULT_MIN_CHARACTERS,
|
|
||||||
weapons_count: DEFAULT_MIN_WEAPONS,
|
|
||||||
summons_count: DEFAULT_MIN_SUMMONS,
|
|
||||||
button_count: DEFAULT_MAX_BUTTONS,
|
|
||||||
turn_count: DEFAULT_MAX_TURNS,
|
|
||||||
name_quality: DEFAULT_NAME_QUALITY,
|
|
||||||
user_quality: DEFAULT_USER_QUALITY,
|
|
||||||
original: DEFAULT_ORIGINAL_ONLY,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const FilterBar = (props: Props) => {
|
const FilterBar = (props: Props) => {
|
||||||
|
|
@ -214,7 +190,7 @@ const FilterBar = (props: Props) => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<FilterModal
|
<FilterModal
|
||||||
defaultFilterSet={DEFAULT_FILTERSET}
|
defaultFilterSet={defaultFilterset}
|
||||||
filterSet={advancedFilters}
|
filterSet={advancedFilters}
|
||||||
open={filterModalOpen}
|
open={filterModalOpen}
|
||||||
onOpenChange={setFilterModalOpen}
|
onOpenChange={setFilterModalOpen}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue