🔀 Merge Mantine v5.0 into Overseerr-integaration
This commit is contained in:
@@ -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' },
|
||||
// },
|
||||
// };
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user