Skip to content

Commit

Permalink
Add protection types widget svgs
Browse files Browse the repository at this point in the history
  • Loading branch information
SARodrigues committed Feb 16, 2024
1 parent 6b4e607 commit 7dbdc82
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import TooltipButton from '@/components/tooltip-button';
import Icon from '@/components/ui/icon';
import { parseConfig } from '@/lib/json-converter';
import EEZIcon from '@/styles/icons/eez.svg?sprite';
import MPAIcon from '@/styles/icons/mpa.svg?sprite';
import OECMIcon from '@/styles/icons/oecm.svg?sprite';
import EEZSelectedIcon from '@/styles/icons/selected-eez.svg?sprite';
import EEZMultipleIcon from '@/styles/icons/several-eez.svg?sprite';
import { LayerTyped, LegendConfig } from '@/types/layers';

export interface LegendItemsProps {
config: LayerTyped['legend_config'];
}
Expand All @@ -16,6 +17,8 @@ const ICONS_MAPPING = {
eez: EEZIcon,
'eez-selected': EEZSelectedIcon,
'eez-multiple': EEZMultipleIcon,
oecm: OECMIcon,
mpa: MPAIcon,
};

const LegendItem: FC<LegendItemsProps> = ({ config }) => {
Expand Down
3 changes: 3 additions & 0 deletions frontend/src/styles/icons/mpa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions frontend/src/styles/icons/oecm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7dbdc82

Please sign in to comment.