mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
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:
parent
e61d7f2616
commit
1c50e19894
2 changed files with 26 additions and 29 deletions
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue