diff --git a/src/components/atoms/FilterButton.tsx b/src/components/atoms/FilterButton.tsx
index 23db6880..32e1d4c7 100644
--- a/src/components/atoms/FilterButton.tsx
+++ b/src/components/atoms/FilterButton.tsx
@@ -29,12 +29,14 @@ const FilterButton = ({
px={2}
onClick={selectFilter}
className={active ? 'active' : ''}
+ sx={{ display: 'flex' }}
>
{icon != null && (
)}
{label}
diff --git a/src/lib/safeData.ts b/src/lib/safeData.ts
index a4c10fe2..4745de33 100644
--- a/src/lib/safeData.ts
+++ b/src/lib/safeData.ts
@@ -1,20 +1,28 @@
export const battlesuitStrengths = [
- { value: 'physical', label: 'Physical' },
- { value: 'fire dmg', label: 'Fire DMG' },
- { value: 'ice dmg', label: 'Ice DMG' },
- { value: 'lightning dmg', label: 'Lightning DMG' },
- { value: 'freeze', label: 'Freeze' },
- { value: 'paralyze', label: 'Paralyze' },
- { value: 'stun', label: 'Stun' },
- { value: 'ignite', label: 'Ignite' },
- { value: 'bleed', label: 'Bleed' },
- { value: 'heavy atk', label: 'Heavy ATK' },
- { value: 'weaken', label: 'Weaken' },
- { value: 'impair', label: 'Impair' },
- { value: 'time mastery', label: 'Time Mastery' },
- { value: 'gather', label: 'Gather' },
- { value: 'heal', label: 'Heal' },
- { value: 'fast atk', label: 'Fast ATK' },
- { value: 'burst', label: 'Burst' },
- { value: 'aerial', label: 'Aerial' },
+ { icon: 'feature-icons/physical', value: 'physical', label: 'Physical' },
+ { icon: 'feature-icons/fire-dmg', value: 'fire dmg', label: 'Fire DMG' },
+ { icon: 'feature-icons/ice-dmg', value: 'ice dmg', label: 'Ice DMG' },
+ {
+ icon: 'feature-icons/lightning-dmg',
+ value: 'lightning dmg',
+ label: 'Lightning DMG',
+ },
+ { icon: 'feature-icons/freeze', value: 'freeze', label: 'Freeze' },
+ { icon: 'feature-icons/paralyze', value: 'paralyze', label: 'Paralyze' },
+ { icon: 'feature-icons/stun', value: 'stun', label: 'Stun' },
+ { icon: 'feature-icons/ignite', value: 'ignite', label: 'Ignite' },
+ { icon: 'feature-icons/bleed', value: 'bleed', label: 'Bleed' },
+ { icon: 'feature-icons/heavy-atk', value: 'heavy atk', label: 'Heavy ATK' },
+ { icon: 'feature-icons/weaken', value: 'weaken', label: 'Weaken' },
+ { icon: 'feature-icons/impair', value: 'impair', label: 'Impair' },
+ {
+ icon: 'feature-icons/time-mastery',
+ value: 'time mastery',
+ label: 'Time Mastery',
+ },
+ { icon: 'feature-icons/gather', value: 'gather', label: 'Gather' },
+ { icon: 'feature-icons/heal', value: 'heal', label: 'Heal' },
+ { icon: 'feature-icons/fast-atk', value: 'fast atk', label: 'Fast ATK' },
+ { icon: 'feature-icons/burst', value: 'burst', label: 'Burst' },
+ { icon: 'feature-icons/aerial', value: 'aerial', label: 'Aerial' },
]
diff --git a/src/pages/honkai3rd/battlesuits/index.tsx b/src/pages/honkai3rd/battlesuits/index.tsx
index 7a48d1bf..ed20f73d 100644
--- a/src/pages/honkai3rd/battlesuits/index.tsx
+++ b/src/pages/honkai3rd/battlesuits/index.tsx
@@ -21,35 +21,33 @@ interface BattlesuitListPageProps {
battlesuits: BattlesuitListItemData[]
}
-const featureFilterOptions = [
- { value: 'all', label: 'All' },
- ...battlesuitStrengths,
-]
+const featureFilterOptions: { value: string; label: string; icon?: string }[] =
+ [{ value: 'all', label: 'All' }, ...battlesuitStrengths]
const valkyrieFilterOptions = [
{ value: 'all', label: 'All' },
- { value: 'mecha', label: 'Mecha' },
- { value: 'biologic', label: 'Biologic' },
- { value: 'psychic', label: 'Psychic' },
- { value: 'quantum', label: 'Quantum' },
- { value: 'imaginary', label: 'Imaginary' },
- { value: 'kiana', label: 'Kiana' },
- { value: 'mei', label: 'Mei' },
- { value: 'bronya', label: 'Bronya' },
- { value: 'himeko', label: 'Himeko' },
- { value: 'theresa', label: 'Theresa' },
- { value: 'fuhua', label: 'Fu Hua' },
- { value: 'rita', label: 'Rita' },
- { value: 'sakura', label: 'Sakura' },
- { value: 'kallen', label: 'Kallen' },
- { value: 'olenyevas', label: 'Olenyevas' },
- { value: 'seele', label: 'Seele' },
- { value: 'durandal', label: 'Durandal' },
- { value: 'fischl', label: 'Fischl' },
- { value: 'elysia', label: 'Elysia' },
- { value: 'mobius', label: 'Mobius' },
- { value: 'raven', label: 'Raven' },
- { value: 'carole', label: 'Carole' },
+ { value: 'mecha', icon: 'type-icons/mecha', label: 'Mecha' },
+ { value: 'biologic', icon: 'type-icons/biologic', label: 'Biologic' },
+ { value: 'psychic', icon: 'type-icons/psychic', label: 'Psychic' },
+ { value: 'quantum', icon: 'type-icons/quantum', label: 'Quantum' },
+ { value: 'imaginary', icon: 'type-icons/imaginary', label: 'Imaginary' },
+ { value: 'kiana', icon: 'valkyrie-icons/kiana', label: 'Kiana' },
+ { value: 'mei', icon: 'valkyrie-icons/mei', label: 'Mei' },
+ { value: 'bronya', icon: 'valkyrie-icons/bronya', label: 'Bronya' },
+ { value: 'himeko', icon: 'valkyrie-icons/himeko', label: 'Himeko' },
+ { value: 'theresa', icon: 'valkyrie-icons/theresa', label: 'Theresa' },
+ { value: 'fuhua', icon: 'valkyrie-icons/fuhua', label: 'Fu Hua' },
+ { value: 'rita', icon: 'valkyrie-icons/rita', label: 'Rita' },
+ { value: 'sakura', icon: 'valkyrie-icons/sakura', label: 'Sakura' },
+ { value: 'kallen', icon: 'valkyrie-icons/kallen', label: 'Kallen' },
+ { value: 'olenyevas', icon: 'valkyrie-icons/olenyevas', label: 'Olenyevas' },
+ { value: 'seele', icon: 'valkyrie-icons/seele', label: 'Seele' },
+ { value: 'durandal', icon: 'valkyrie-icons/durandal', label: 'Durandal' },
+ { value: 'fischl', icon: 'valkyrie-icons/fischl', label: 'Fischl' },
+ { value: 'elysia', icon: 'valkyrie-icons/elysia', label: 'Elysia' },
+ { value: 'mobius', icon: 'valkyrie-icons/mobius', label: 'Mobius' },
+ { value: 'raven', icon: 'valkyrie-icons/raven', label: 'Raven' },
+ { value: 'carole', icon: 'valkyrie-icons/carole', label: 'Carole' },
]
const BattlesuitListPage = ({ battlesuits }: BattlesuitListPageProps) => {
@@ -125,7 +123,7 @@ const BattlesuitListPage = ({ battlesuits }: BattlesuitListPageProps) => {
Filter by Features
- {featureFilterOptions.map(({ value, label }) => {
+ {featureFilterOptions.map(({ value, label, icon }) => {
return (
{
setFilter={setFilter}
value={value}
label={label}
+ icon={icon}
m={1}
/>
)
@@ -141,7 +140,7 @@ const BattlesuitListPage = ({ battlesuits }: BattlesuitListPageProps) => {
Filter by Valkyries
- {valkyrieFilterOptions.map(({ value, label }) => {
+ {valkyrieFilterOptions.map(({ value, label, icon }) => {
return (
{
setFilter={setFilter}
value={value}
label={label}
+ icon={icon}
m={1}
/>
)