Skip to content
Snippets Groups Projects
Commit 986654fc authored by Adrian Orłów's avatar Adrian Orłów
Browse files

fix: overlays legends not shown

parent fc804855
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!97fix: overlays legends not shown
Pipeline #84121 passed
...@@ -3,6 +3,7 @@ import { currentStepOverlayDrawerStateSelector } from '@/redux/drawer/drawer.sel ...@@ -3,6 +3,7 @@ import { currentStepOverlayDrawerStateSelector } from '@/redux/drawer/drawer.sel
import { useAppSelector } from '@/redux/hooks/useAppSelector'; import { useAppSelector } from '@/redux/hooks/useAppSelector';
import { DrawerHeading } from '@/shared/DrawerHeading'; import { DrawerHeading } from '@/shared/DrawerHeading';
import { GeneralOverlays } from './GeneralOverlays'; import { GeneralOverlays } from './GeneralOverlays';
import { OverlaysLegends } from './OverlaysLegends';
import { UserOverlayForm } from './UserOverlayForm'; import { UserOverlayForm } from './UserOverlayForm';
import { UserOverlays } from './UserOverlays'; import { UserOverlays } from './UserOverlays';
...@@ -17,6 +18,7 @@ export const OverlaysDrawer = (): JSX.Element => { ...@@ -17,6 +18,7 @@ export const OverlaysDrawer = (): JSX.Element => {
<div className="h-[calc(100%-93px)] max-h-[calc(100%-93px)] overflow-y-auto"> <div className="h-[calc(100%-93px)] max-h-[calc(100%-93px)] overflow-y-auto">
<GeneralOverlays /> <GeneralOverlays />
<UserOverlays /> <UserOverlays />
<OverlaysLegends />
</div> </div>
</> </>
)} )}
......
...@@ -6,7 +6,7 @@ export const OverlaysLegends = (): JSX.Element => { ...@@ -6,7 +6,7 @@ export const OverlaysLegends = (): JSX.Element => {
const overlays = useSelector(activeOverlaysSelector); const overlays = useSelector(activeOverlaysSelector);
return ( return (
<div className="p-6" data-testid="overlays-legends"> <div className="border-t border-t-divide p-6" data-testid="overlays-legends">
{overlays.map(overlay => ( {overlays.map(overlay => (
<OverlaySingleLegend key={overlay.idObject} overlay={overlay} /> <OverlaySingleLegend key={overlay.idObject} overlay={overlay} />
))} ))}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment