diff --git a/src/Kodetre/Kodeliste/Bildeavatar.js b/src/Kodetre/Kodeliste/Bildeavatar.js index b528a7022..c83efcf83 100644 --- a/src/Kodetre/Kodeliste/Bildeavatar.js +++ b/src/Kodetre/Kodeliste/Bildeavatar.js @@ -1,4 +1,3 @@ -import typesystem from "@artsdatabanken/typesystem"; import { Avatar } from "@material-ui/core"; import { withStyles } from "@material-ui/core/styles"; import React, { Component } from "react"; @@ -31,9 +30,8 @@ class BildeAvatar extends Component { const { farge, farge0, classes, kode, url } = this.props; const size = this.props.size || "big"; const prefiks = kode.substring(0, 2); - const parts = typesystem.splittKode(kode); const tekst = prefiks; - if ("AO_OR".indexOf(prefiks) >= 0 && parts.length > 1) + if ("AO,OR,VV".indexOf(prefiks) >= 0) return ( { +const GitHub = () => { return ( diff --git a/src/MainDrawer/MainDrawer.js b/src/MainDrawer/MainDrawer.js index 19364cdb9..af496300b 100644 --- a/src/MainDrawer/MainDrawer.js +++ b/src/MainDrawer/MainDrawer.js @@ -21,13 +21,13 @@ import { Landscape, BubbleChart, Layers, - Healing, AssignmentInd } from "@material-ui/icons"; import React, { Component } from "react"; import { withRouter } from "react-router-dom"; import NavigationChevronLeftDouble from "../Grunnkart/NavigationChevronLeftDouble"; import BildeAvatar from "../Kodetre/Kodeliste/Bildeavatar"; +import Naturvern from "./Naturvern"; import GitHub from "./GitHub"; import Innstillinger from "./Innstillinger"; @@ -86,7 +86,7 @@ class MainDrawer extends Component { /> } + icon={} primary="Naturvernområde" /> { + return ( + + + + ); +}; +export default Naturvern;