Skip to content

Commit

Permalink
Merge pull request #88 from emerson-eps/fix-lint-error
Browse files Browse the repository at this point in the history
fix: fixing issue with referring file in webviz
  • Loading branch information
shruthirai authored Apr 11, 2022
2 parents 745a5e3 + 29588fa commit a7cd6b7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
6 changes: 2 additions & 4 deletions react-app/src/component/Legend/ColorLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ declare type ColorLegendProps = {
}

// Todo: Adapt it for other layers too
const ColorLegend: React.FC<ColorLegendProps> = ({
export const ColorLegend: React.FC<ColorLegendProps> = ({
position,
horizontal,
colorTables,
Expand Down Expand Up @@ -86,6 +86,4 @@ const ColorLegend: React.FC<ColorLegendProps> = ({
</div>

);
};

export default ColorLegend;
};
22 changes: 13 additions & 9 deletions react-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
import { ContinuousLegend } from './component/Legend/ContinuousLegend';
import { colorsArray, rgbValues, RGBToHex} from './component/Utils/continousLegend';
import { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
import { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
import { ColorSelectorAccordion } from './component/ColorSelector/ColorSelectorAccordion';
import { ColorSelectorComponent } from './component/ColorSelector/ColorSelectorComponent';
import { ColorSelectorWrapper } from './component/ColorSelector/ColorSelectorWrapper';
import { ContinuousLegend } from './component/Legend/ContinuousLegend';
import { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
import { ColorLegend } from './component/Legend/ColorLegend';
import { colorsArray, rgbValues, RGBToHex } from './component/Utils/continousLegend';
import { d3ColorScales } from './component/Utils/d3ColorScale';
import { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
import * as colorTables from './component/color-tables.json';

export {
ColorSelectorAccordion,
ColorSelectorComponent,
ColorSelectorWrapper,
ContinuousLegend,
colorTableData,
DiscreteColorLegend,
ColorLegend,
colorsArray,
rgbValues,
RGBToHex,
colorTableData,
DiscreteColorLegend,
d3ColorScales,
colorTablesObj,
colorTablesArray,
ColorSelectorAccordion,
ColorSelectorComponent,
ColorSelectorWrapper,
colorTables,
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import colorTables from "../../../component/color-tables.json";
import ColorLegend from "../../../component/Legend/ColorLegend";
import {ColorLegend} from "../../../component/Legend/ColorLegend";

export default {
component: ColorLegend,
Expand Down

0 comments on commit a7cd6b7

Please sign in to comment.