mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 23:15:46 +01:00
✨ Adjust nullable in types
This commit is contained in:
@@ -41,9 +41,21 @@ export const AvailableElementTypes = ({
|
||||
enabledStatusChecker: false,
|
||||
okStatus: [],
|
||||
},
|
||||
integration: {
|
||||
type: 'deluge',
|
||||
properties: {},
|
||||
behaviour: {
|
||||
isOpeningNewTab: false,
|
||||
},
|
||||
area: {
|
||||
type: 'wrapper',
|
||||
},
|
||||
shape: {
|
||||
location: {
|
||||
x: 0,
|
||||
y: 0,
|
||||
},
|
||||
size: {
|
||||
height: 1,
|
||||
width: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -7,13 +7,11 @@ export interface ServiceType extends TileBaseType {
|
||||
behaviour: ServiceBehaviourType;
|
||||
network: ServiceNetworkType;
|
||||
appearance: ServiceAppearanceType;
|
||||
integration?: ServiceIntegrationType; //TODO: make this nullable
|
||||
integration?: ServiceIntegrationType;
|
||||
}
|
||||
|
||||
interface ServiceBehaviourType {
|
||||
onClickUrl: string;
|
||||
isMoveable: boolean; //TODO: remove this proeprty
|
||||
isSticky: boolean; //TODO: remove this property
|
||||
onClickUrl?: string;
|
||||
isOpeningNewTab: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user