mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 16:17:13 +01:00
Switch to next/font.
This commit is contained in:
parent
728e4cff5b
commit
8397102bac
7 changed files with 14 additions and 25 deletions
|
|
@ -17,8 +17,8 @@ export default function FilterTags({ websiteId, params }) {
|
|||
}
|
||||
|
||||
function handleCloseFilter(param) {
|
||||
if (param === null) {
|
||||
router.push(`/websites/${websiteId}/?view=${view}`);
|
||||
if (!param) {
|
||||
router.push(`/websites/${websiteId}${view ? `?view=${view}` : ''}`);
|
||||
} else {
|
||||
router.push(resolveUrl({ [param]: undefined }));
|
||||
}
|
||||
|
|
@ -41,7 +41,7 @@ export default function FilterTags({ websiteId, params }) {
|
|||
</div>
|
||||
);
|
||||
})}
|
||||
<Button size="sm" variant="quiet" onClick={() => handleCloseFilter(null)}>
|
||||
<Button size="sm" variant="quiet" onClick={() => handleCloseFilter()}>
|
||||
<Icon>
|
||||
<Icons.Close />
|
||||
</Icon>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue