Add icon to filer buttons

This commit is contained in:
Sakura Knoll
2021-12-31 18:19:17 +09:00 Unverified
parent bad4397b32
commit 8f061250e7
3 changed files with 57 additions and 47 deletions
+3 -1
View File
@@ -29,12 +29,14 @@ const FilterButton = ({
px={2}
onClick={selectFilter}
className={active ? 'active' : ''}
sx={{ display: 'flex' }}
>
{icon != null && (
<SquareImageBox
src={`/assets/honkai3rd/icons/${icon}.png`}
src={`/assets/honkai3rd/${icon}.png`}
alt={label}
size={30}
mr={1}
/>
)}
{label}