feat(Map): Fixed incorrect wrapping labels of checkboxes in System Signatures, Local and Routes. Also changed dotlan links for k-spacem now it leads to region map before, for wh all stay as it was. Added ability to chane to softer background and remove dots on background of map. Also some small design issues. #2

This commit is contained in:
achichenkov
2024-12-16 12:42:24 +03:00
parent 8505fcb6b7
commit 94d60e40d0

View File

@@ -8,6 +8,7 @@ import { useWaypointMenu } from '@/hooks/Mapper/components/contexts/hooks';
import { FastSystemActions } from '@/hooks/Mapper/components/contexts/components'; import { FastSystemActions } from '@/hooks/Mapper/components/contexts/components';
import { useMapCheckPermissions } from '@/hooks/Mapper/mapRootProvider/hooks/api'; import { useMapCheckPermissions } from '@/hooks/Mapper/mapRootProvider/hooks/api';
import { UserPermission } from '@/hooks/Mapper/types/permissions.ts'; import { UserPermission } from '@/hooks/Mapper/types/permissions.ts';
import { isWormholeSpace } from '@/hooks/Mapper/components/map/helpers/isWormholeSpace.ts';
export const useContextMenuSystemItems = ({ export const useContextMenuSystemItems = ({
onDeleteSystem, onDeleteSystem,
@@ -32,6 +33,9 @@ export const useContextMenuSystemItems = ({
return useMemo(() => { return useMemo(() => {
const system = systemId ? getSystemById(systems, systemId) : undefined; const system = systemId ? getSystemById(systems, systemId) : undefined;
// eslint-disable-next-line no-console
console.log('JOipP', `system`, system);
if (!system || !systemId) { if (!system || !systemId) {
return []; return [];
} }
@@ -44,6 +48,8 @@ export const useContextMenuSystemItems = ({
<FastSystemActions <FastSystemActions
systemId={systemId} systemId={systemId}
systemName={system.system_static_info.solar_system_name} systemName={system.system_static_info.solar_system_name}
regionName={system.system_static_info.region_name}
isWH={isWormholeSpace(system.system_static_info.system_class)}
showEdit showEdit
onOpenSettings={onOpenSettings} onOpenSettings={onOpenSettings}
/> />