Skip to content

Commit

Permalink
Tekst over tekst i visning av gradient (#1173)
Browse files Browse the repository at this point in the history
* Tekst over tekst i visning av gradient
  • Loading branch information
bjornreppen authored Mar 22, 2019
1 parent 2176bae commit 5712d55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Kodetre/Kodeliste/LinearGauge.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function rutefarge(erPå, col) {
return tinycolor.mix(col, new tinycolor("#eee"), 90).toHexString();
}

export default class Gradient extends Component {
export default class KlassedeltGradient extends Component {
render() {
const { tittel, trinn, onNavigate, url, kode, visKoder } = this.props;
const antall = trinn.length;
Expand Down Expand Up @@ -51,7 +51,7 @@ export default class Gradient extends Component {
primary={tittel}
secondary={
<>
<Gauge trinn={trinn} range={påRange} />
<Gradienttrinn trinn={trinn} range={påRange} />
<div style={{ display: "flex", position: "relative", top: -10 }}>
<div
style={{
Expand All @@ -75,7 +75,7 @@ export default class Gradient extends Component {
}
}

const Gauge = ({ trinn, range }) => {
const Gradienttrinn = ({ trinn, range }) => {
return (
<SettingsContext.Consumer>
{context => (
Expand Down
1 change: 1 addition & 0 deletions src/Kodetre/Kodeliste/prettyKode.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
function prettyKode(kode) {
kode = kode.replace("NN-NA-LKM-", "");
kode = kode.replace("NN-LA-KLG-", "");
kode = kode.replace("NN-", "");
kode = kode.replace("AO-", "");
return kode;
Expand Down

0 comments on commit 5712d55

Please sign in to comment.