Refactored filter logic.

This commit is contained in:
Mike Cao committed 2023-04-01 15:44:30 -07:00
1 parent 57c3d03cc8
commit 74192cd695
18 files changed
+205 -296

No files matched your search

+1 -1
View File
@@ -5,9 +5,9 @@
transform: translate(-50%, -50%);
margin: auto;
display: flex;
z-index: var(--z-index-above);
background-color: var(--base50);
padding: 10px;
z-index: 1;
}
.icon {
+1 -1
View File
@@ -14,7 +14,7 @@ export default function FilterLink({ id, value, label, externalUrl }) {
return (
<div className={styles.row}>
{!value && <span className={styles.empty}>{label || formatMessage(labels.unknown)}</span>}
{!value && `(${label || formatMessage(labels.unknown)})`}
{value && (
<Link
href={resolveUrl({ [id]: value })}
-4
View File
@@ -30,7 +30,3 @@
.icon {
cursor: pointer;
}
.empty {
color: var(--base400);
}