fix: use icons instead of toggles for admin user features view (#19369)

* fix: use icons instead of toggles for admin user features view

* fix: use red for X icon
This commit is contained in:
Brandon Wees 2025-06-20 09:48:18 -05:00 committed by GitHub
parent e61d7f2616
commit 1c50e19894
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 29 deletions

View file

@ -0,0 +1,16 @@
<script lang="ts">
import { Icon, Text } from '@immich/ui';
import { mdiCheck, mdiClose } from '@mdi/js';
interface Props {
title: string;
state: boolean;
}
let { title, state }: Props = $props();
</script>
<div class="flex justify-between items-center">
<Text class="text-sm font-medium">{title}</Text>
<Icon icon={state ? mdiCheck : mdiClose} class={state ? 'text-primary' : 'text-danger'} size="24" />
</div>