diff --git a/src/components/map/MapComponent.tsx b/src/components/map/MapComponent.tsx index d30c504db..bd16c56a0 100644 --- a/src/components/map/MapComponent.tsx +++ b/src/components/map/MapComponent.tsx @@ -3,7 +3,6 @@ import Links from './links'; import Nodes, { getStarShape } from './nodes'; import { LinkI, NodeI } from './types'; import { MapApi } from '../../actions/actions'; -import Button from '../button'; import { forceCenter, forceCollide, ForceLink, forceLink, forceSimulation, forceX, forceY } from 'd3-force'; import { select } from 'd3-selection'; import { forceManyBodyReuse } from 'd3-force-reuse'; @@ -23,6 +22,7 @@ import { PropsFromStore, ticked, } from '.'; +import { Offcanvas, Button } from 'react-bootstrap'; export class MapComponent extends Component, MapState> { ref = createRef(); @@ -32,7 +32,7 @@ export class MapComponent extends Component this.setState({ legendIsVisible: false })} - > -
- - - {' '} - {t('help_is_coordinator')} -
-
{t('help_end_device_description')}
-
{t('help_router_description')}
- -
{t('help_coordinator_link_description')}
-
{t('help_router_links_description')}
-
{t('help_lqi_description')}
-
{t('hide')}
- + <> + + { + this.setState({ legendIsVisible: false }); + }}> + + Map Help + + +
    +
  • +
    + + + {' '} + {t('help_is_coordinator')} +
    +
  • +
  • {t('help_end_device_description')}
  • +
  • {t('help_router_description')}
  • +
  • {t('help_coordinator_link_description')}
  • +
  • {t('help_router_links_description')}
  • +
    +
  • {t('help_lqi_description')}
  • +
+
+
+ ); } render(): JSX.Element { diff --git a/src/components/map/map.module.css b/src/components/map/map.module.css index 0e0782c39..fff818fb1 100644 --- a/src/components/map/map.module.css +++ b/src/components/map/map.module.css @@ -4,11 +4,13 @@ user-select: none; position: relative; } + .img { width: 32px; height: 32px; opacity: 1; } + .node { font-size: 14px; cursor: pointer; @@ -52,8 +54,8 @@ } .Coordinator text { display: none; - } + .Router, .Coordinator { fill: blue;