mirror of
https://github.com/wanderer-industries/wanderer
synced 2025-12-12 10:45:54 +00:00
fix(Map): Fixed eslint problems
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user