Adjust styles and remove subsonic server option

This commit is contained in:
jeffvli 2022-12-19 16:12:57 -08:00
parent 2445b334eb
commit b0cd967ae6
2 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
import { useState } from 'react'; import { useState } from 'react';
import { Stack, Group, Checkbox } from '@mantine/core'; import { Stack, Group, Checkbox } from '@mantine/core';
import { Button, PasswordInput, SegmentedControl, TextInput } from '/@/renderer/components'; import { Button, PasswordInput, SegmentedControl, TextInput, toast } from '/@/renderer/components';
import { useForm } from '@mantine/form'; import { useForm } from '@mantine/form';
import { useFocusTrap } from '@mantine/hooks'; import { useFocusTrap } from '@mantine/hooks';
import { closeAllModals } from '@mantine/modals'; import { closeAllModals } from '@mantine/modals';
@ -9,14 +9,13 @@ import { jellyfinApi } from '/@/renderer/api/jellyfin.api';
import { navidromeApi } from '/@/renderer/api/navidrome.api'; import { navidromeApi } from '/@/renderer/api/navidrome.api';
import { subsonicApi } from '/@/renderer/api/subsonic.api'; import { subsonicApi } from '/@/renderer/api/subsonic.api';
import { AuthenticationResponse } from '/@/renderer/api/types'; import { AuthenticationResponse } from '/@/renderer/api/types';
import { toast } from '/@/renderer/components';
import { useAuthStoreActions } from '/@/renderer/store'; import { useAuthStoreActions } from '/@/renderer/store';
import { ServerType } from '/@/renderer/types'; import { ServerType } from '/@/renderer/types';
const SERVER_TYPES = [ const SERVER_TYPES = [
{ label: 'Jellyfin', value: ServerType.JELLYFIN }, { label: 'Jellyfin', value: ServerType.JELLYFIN },
{ label: 'Navidrome', value: ServerType.NAVIDROME }, { label: 'Navidrome', value: ServerType.NAVIDROME },
{ label: 'Subsonic', value: ServerType.SUBSONIC }, // { label: 'Subsonic', value: ServerType.SUBSONIC },
]; ];
const AUTH_FUNCTIONS = { const AUTH_FUNCTIONS = {

View file

@ -30,7 +30,7 @@ export const ServerList = () => {
sx={{ sx={{
position: 'absolute', position: 'absolute',
right: 55, right: 55,
transform: 'translateY(-4rem)', transform: 'translateY(-4.5rem)',
}} }}
> >
<Button <Button