remove duplicate ServerType enum

This commit is contained in:
jeffvli
2026-02-06 05:33:15 -08:00
parent 3550177f67
commit 03b01472f8
8 changed files with 26 additions and 20 deletions
@@ -27,8 +27,12 @@ import { Text } from '/@/shared/components/text/text';
import { toast } from '/@/shared/components/toast/toast';
import { useFocusTrap } from '/@/shared/hooks/use-focus-trap';
import { useForm } from '/@/shared/hooks/use-form';
import { AuthenticationResponse, ServerListItemWithCredential } from '/@/shared/types/domain-types';
import { DiscoveredServerItem, ServerType, toServerType } from '/@/shared/types/types';
import {
AuthenticationResponse,
ServerListItemWithCredential,
ServerType,
} from '/@/shared/types/domain-types';
import { DiscoveredServerItem, toServerType } from '/@/shared/types/types';
const autodiscover = isElectron() ? window.api.autodiscover : null;
const localSettings = isElectron() ? window.api.localSettings : null;
@@ -70,7 +74,7 @@ function useAutodiscovery() {
return { isDone, servers };
}
const SERVER_TYPES: Record<ServerType, ServerDetails> = {
const SERVER_TYPES: Record<Exclude<ServerType, ServerType.EXTERNAL>, ServerDetails> = {
[ServerType.JELLYFIN]: {
icon: JellyfinIcon,
name: 'Jellyfin',