Switch to next/font.

This commit is contained in:
Mike Cao 2023-04-01 20:03:38 -07:00
parent 728e4cff5b
commit 8397102bac
7 changed files with 14 additions and 25 deletions

View file

@ -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>