fix(Map): Fixed eslint problems

This commit is contained in:
DanSylvest
2025-09-24 13:12:32 +03:00
parent 3801f0be18
commit 3b24c760ff

View File

@@ -83,9 +83,7 @@ export const ContextMenuConnection: React.FC<ContextMenuConnectionProps> = ({
{ {
className: clsx(classes.FastActions, '!h-[54px]'), className: clsx(classes.FastActions, '!h-[54px]'),
template: () => { template: () => {
return ( return <LifetimeActionsWrapper lifetime={edge.data?.time_status} onChangeLifetime={onChangeTimeState} />;
<LifetimeActionsWrapper lifetime={edge.data?.time_status} onChangeLifetime={onChangeTimeState} />
);
}, },
}, },
{ {
@@ -109,20 +107,19 @@ export const ContextMenuConnection: React.FC<ContextMenuConnectionProps> = ({
}, },
...(!isFrigateSize ...(!isFrigateSize
? [ ? [
{ {
label: `Mass status`, label: `Mass status`,
icon: PrimeIcons.CHART_PIE, icon: PrimeIcons.CHART_PIE,
items: MASS_STATE_NAMES_ORDER.map(x => ({ items: MASS_STATE_NAMES_ORDER.map(x => ({
label: MASS_STATE_NAMES[x], label: MASS_STATE_NAMES[x],
className: clsx({ className: clsx({
[classes.SelectedItem]: edge.data?.mass_status === x, [classes.SelectedItem]: edge.data?.mass_status === x,
}), }),
command: () => onChangeMassState(x), command: () => onChangeMassState(x),
})), })),
}, },
] ]
: []), : []),
{ {
label: `Ship Size`, label: `Ship Size`,
icon: PrimeIcons.CLOUD, icon: PrimeIcons.CLOUD,
@@ -145,12 +142,12 @@ export const ContextMenuConnection: React.FC<ContextMenuConnectionProps> = ({
}, },
...(bothNullsec ...(bothNullsec
? [ ? [
{ {
label: `Set as Bridge`, label: `Set as Bridge`,
icon: 'pi hero-forward', icon: 'pi hero-forward',
command: () => onChangeType(ConnectionType.bridge), command: () => onChangeType(ConnectionType.bridge),
}, },
] ]
: []), : []),
{ {
label: 'Disconnect', label: 'Disconnect',