Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed May 27, 2020
1 parent bd59d00 commit cb16a60
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
getRGBColorRangeStrings,
getLinearGradient,
} from '../color_utils';
import classNames from 'classnames';

interface Props {
colorRamp?: string[];
Expand All @@ -23,7 +22,9 @@ export const ColorGradient = ({ colorRamp, colorRampName }: Props) => {
return null;
}

const rgbColorStrings = colorRampName ? getRGBColorRangeStrings(colorRampName, GRADIENT_INTERVALS) : colorRamp!;
const rgbColorStrings = colorRampName
? getRGBColorRangeStrings(colorRampName, GRADIENT_INTERVALS)
: colorRamp!;
const background = getLinearGradient(rgbColorStrings);
return <div className="mapColorGradient" style={{ background }} />;
};

0 comments on commit cb16a60

Please sign in to comment.