🔀 Merge Mantine v5.0 into Overseerr-integaration

This commit is contained in:
ajnart
2022-08-07 12:25:23 +02:00
43 changed files with 1226 additions and 1005 deletions

View File

@@ -1,12 +1,13 @@
import { MantineProviderProps } from '@mantine/core';
export const styles: MantineProviderProps['styles'] = {
Checkbox: {
input: { cursor: 'pointer' },
label: { cursor: 'pointer' },
},
Switch: {
input: { cursor: 'pointer' },
label: { cursor: 'pointer' },
},
};
//TODO: Migarate this to v5.0
// export const styles: MantineProviderProps['styles'] = {
// Checkbox: {
// input: { cursor: 'pointer' },
// label: { cursor: 'pointer' },
// },
// Switch: {
// input: { cursor: 'pointer' },
// label: { cursor: 'pointer' },
// },
// };

View File

@@ -86,7 +86,10 @@ export type ServiceType =
| 'Overseerr'
| 'Transmission';
export function tryMatchPort(name: string, form?: any) {
export function tryMatchPort(name: string | undefined, form?: any) {
if (!name) {
return undefined;
}
// Match name with portmap key
const port = portmap.find((p) => p.name === name.toLowerCase());
if (form && port) {