Skip to content

Commit

Permalink
Merge pull request #11 from emerson-eps/fix-build-issue
Browse files Browse the repository at this point in the history
fix: fixing error
  • Loading branch information
shruthirai authored Jan 8, 2022
2 parents 8a119f5 + 45f35ca commit 1be1db7
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 26 deletions.
4 changes: 1 addition & 3 deletions react-app/src/component/Legend/ContinuousLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ declare type ItemColor = {
offset: number;
}

const ContinuousLegend: React.FC<legendProps> = ({
export const ContinuousLegend: React.FC<legendProps> = ({
min,
max,
dataObjectName,
Expand Down Expand Up @@ -127,5 +127,3 @@ const ContinuousLegend: React.FC<legendProps> = ({
ContinuousLegend.defaultProps = {
position: [5, 10],
};

export default ContinuousLegend;
4 changes: 1 addition & 3 deletions react-app/src/component/Legend/DiscreteLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare type colorLegendProps = {
horizontal: boolean;
}

const DiscreteColorLegend: React.FC<colorLegendProps> = ({
export const DiscreteColorLegend: React.FC<colorLegendProps> = ({
discreteData,
name,
dataObjectName,
Expand Down Expand Up @@ -122,5 +122,3 @@ export function colorTableData(
DiscreteColorLegend.defaultProps = {
position: [5, 10],
};

export default DiscreteColorLegend;
10 changes: 5 additions & 5 deletions react-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export * from './component/Legend/ContinuousLegend';
export * from './component/Legend/DiscreteLegend';
export * from './component/Utils/continousLegend';
export * from './component/ColorTableTypes';
export * from './component/WelllayerTemplateTypes';
export { ContinuousLegend } from './component/Legend/ContinuousLegend';
export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
export { colorsArray, rgbValues, RGBToHex} from './component/Utils/continousLegend';
export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
export {propertiesObj, templateArray } from './component/WelllayerTemplateTypes';
export const colorTables = require('./component/color-tables');
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ContinuousLegend from "../../../component/Legend/ContinuousLegend";
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
export default {
component: ContinuousLegend,
title: "Legends/ContinousLegend",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ContinuousLegend from "../../../component/Legend/ContinuousLegend";
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
export default {
component: ContinuousLegend,
title: "Legends/ContinousLegend",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ContinuousLegend from "../../../component/Legend/ContinuousLegend";
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
export default {
component: ContinuousLegend,
title: "Legends/ContinousLegend",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ContinuousLegend from "../../../component/Legend/ContinuousLegend";
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
export default {
component: ContinuousLegend,
title: "Legends/ContinousLegend",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ContinuousLegend from "../../../component/Legend/ContinuousLegend";
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
export default {
component: ContinuousLegend,
title: "Legends/ContinousLegend",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ContinuousLegend from "../../../component/Legend/ContinuousLegend";
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
export default {
component: ContinuousLegend,
title: "Legends/ContinousLegend",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import ContinuousLegend from "../../../component/Legend/ContinuousLegend";
import {ContinuousLegend} from "../../../component/Legend/ContinuousLegend";
export default {
component: ContinuousLegend,
title: "Legends/ContinousLegend",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
import template from "../../../component/welllayer_template.json";
import colorTables from "../../../component/color-tables.json";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
import template from "../../../component/welllayer_template.json";
import colorTables from "../../../component/color-tables.json";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
import template from "../../../component/welllayer_template.json";
import colorTables from "../../../component/color-tables.json";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
import template from "../../../component/welllayer_template.json";
import colorTables from "../../../component/color-tables.json";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
import template from "../../../component/welllayer_template.json";
import colorTables from "../../../component/color-tables.json";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
import template from "../../../component/welllayer_template.json";
import colorTables from "../../../component/color-tables.json";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
import template from "../../../component/welllayer_template.json";
import colorTables from "../../../component/color-tables.json";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import DiscreteColorLegend from "../../../component/Legend/DiscreteLegend";
import {DiscreteColorLegend} from "../../../component/Legend/DiscreteLegend";
import template from "../../../component/welllayer_template.json";
import colorTables from "../../../component/color-tables.json";

Expand Down

0 comments on commit 1be1db7

Please sign in to comment.