Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit f7e188d

Browse files
authored
fix: LEAP-409: Update files to match with monorepo (#272)
* fix: LEAP-409: Update files to match with monorepo * fix the export type for datamanager * add more validations to make monorepo works
1 parent b27d1ee commit f7e188d

File tree

4 files changed

+22
-19
lines changed

4 files changed

+22
-19
lines changed

src/assets/icons/index.js

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
export { default as LsAnnotation } from './annotation.svg';
2-
export { default as LsBanSquare } from './ban.svg';
3-
export { default as LsCheckAlt } from "./check_alt.svg";
4-
export { default as LsCrossAlt } from "./cross_alt.svg";
5-
export { default as LsSparkSquare } from './spark.svg';
6-
export { default as LsThumbsDown } from './thumbs_down.svg';
7-
export { default as LsThumbsUp } from './thumbs_up.svg';
8-
export { default as LsStarSquare } from './star_square.svg';
9-
export { default as LSPlus } from './plus.svg';
10-
export { default as LsRefresh } from "./refresh.svg";
11-
export { default as LsGear } from "./gear.svg";
12-
export { default as LsGearNewUI } from "./gear_new_menu.svg";
13-
export { default as CommentCheck } from "./comment_check.svg";
14-
export { default as CommentRed } from "./comment_red.svg";
15-
export { default as LsGrid } from "./grid.svg";
16-
export { default as LsList } from "./list.svg";
17-
export { default as LsRefresh2 } from "./refresh2.svg";
1+
export { ReactComponent as LsAnnotation } from './annotation.svg';
2+
export { ReactComponent as LsBanSquare } from './ban.svg';
3+
export { ReactComponent as LsCheckAlt } from "./check_alt.svg";
4+
export { ReactComponent as LsCrossAlt } from "./cross_alt.svg";
5+
export { ReactComponent as LsSparkSquare } from './spark.svg';
6+
export { ReactComponent as LsThumbsDown } from './thumbs_down.svg';
7+
export { ReactComponent as LsThumbsUp } from './thumbs_up.svg';
8+
export { ReactComponent as LsStarSquare } from './star_square.svg';
9+
export { ReactComponent as LSPlus } from './plus.svg';
10+
export { ReactComponent as LsRefresh } from "./refresh.svg";
11+
export { ReactComponent as LsGear } from "./gear.svg";
12+
export { ReactComponent as LsGearNewUI } from "./gear_new_menu.svg";
13+
export { ReactComponent as CommentCheck } from "./comment_check.svg";
14+
export { ReactComponent as CommentRed } from "./comment_red.svg";
15+
export { ReactComponent as LsGrid } from "./grid.svg";
16+
export { ReactComponent as LsList } from "./list.svg";
17+
export { ReactComponent as LsRefresh2 } from "./refresh2.svg";

src/dev.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Button } from "./components/Common/Button/Button";
22

3-
const API_GATEWAY = process.env.API_GATEWAY;
4-
const LS_ACCESS_TOKEN = process.env.LS_ACCESS_TOKEN;
3+
const API_GATEWAY = process.env.API_GATEWAY || process.env.NX_API_GATEWAY;
4+
const LS_ACCESS_TOKEN = process.env.LS_ACCESS_TOKEN || process.env.NX_LS_ACCESS_TOKEN;
55

66
/**
77
* @param {import("../src/sdk/dm-sdk").DataManager} DataManager

src/sdk/lsf-sdk.js

+2
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ export class LSFWrapper {
332332
}
333333

334334
setLSFTask(task, annotationID, fromHistory) {
335+
if (!this.lsf) return;
336+
335337
const hasChangedTasks = this.lsf?.task?.id !== task?.id && task?.id;
336338

337339
this.setLoading(true, hasChangedTasks);

webpack.config-builder.js

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ module.exports = ({ withDevServer = false } = {}) => ({
307307
use: [{
308308
loader: '@svgr/webpack',
309309
options: {
310+
exportType: 'named',
310311
ref: true,
311312
},
312313
}],

0 commit comments

Comments
 (0)