Skip to content

Commit

Permalink
update default
Browse files Browse the repository at this point in the history
  • Loading branch information
HuskyHsu committed Jan 20, 2024
1 parent 9780115 commit ff8d075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Pokedex/UseFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function UseFilter() {

const filter: Filter = {
keyword: searchParams.get('keyword') || '',
pokedex: (searchParams.get('pokedex') || 'paldea') as PokedexFrom | 'home' | 'national',
pokedex: (searchParams.get('pokedex') || 'national') as PokedexFrom | 'home' | 'national',
page: Number(searchParams.get('page') || 1),
types: new Set((searchParams.get('types') || '').split('-').filter(Boolean)),
ability: searchParams.get('ability') || '',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Pokedex/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ export function Header({
<SubTitleSlide title="圖鑑分類" />
<Buttons
list={[
{ name: '全國', val: 'national' },
{ name: '帕底亞', val: 'paldea' },
{ name: '北上', val: 'kitakami' },
{ name: '藍莓', val: 'blueberry' },
{ name: '洗翠', val: 'hisui' },
{ name: '全國', val: 'national' },
{ name: 'HOME / 活動 / 點心', val: 'home' },
]}
currVal={filter.pokedex}
Expand Down

0 comments on commit ff8d075

Please sign in to comment.