feat(own): add filter
This commit is contained in:
@@ -459,6 +459,8 @@ export function SettingListHeader({
|
||||
actions,
|
||||
className,
|
||||
}: SettingListHeaderProps) {
|
||||
const isPlainCount = typeof count === "string" || typeof count === "number"
|
||||
|
||||
return (
|
||||
<Group
|
||||
justify="space-between"
|
||||
@@ -469,7 +471,11 @@ export function SettingListHeader({
|
||||
<Group gap="xs">
|
||||
<Text className={classes.listHeaderTitle}>{title}</Text>
|
||||
{count !== undefined ? (
|
||||
<Text className={classes.listHeaderCount}>{count}</Text>
|
||||
isPlainCount ? (
|
||||
<Text className={classes.listHeaderCount}>{count}</Text>
|
||||
) : (
|
||||
<div className={classes.listHeaderCount}>{count}</div>
|
||||
)
|
||||
) : null}
|
||||
</Group>
|
||||
{actions}
|
||||
|
||||
Reference in New Issue
Block a user