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

Commit

Permalink
fix: LEAP-409: Update files to match with monorepo (#272)
Browse files Browse the repository at this point in the history
* fix: LEAP-409: Update files to match with monorepo

* fix the export type for datamanager

* add more validations to make monorepo works
  • Loading branch information
juliosgarbi authored Nov 24, 2023
1 parent b27d1ee commit f7e188d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 19 deletions.
34 changes: 17 additions & 17 deletions src/assets/icons/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
export { default as LsAnnotation } from './annotation.svg';
export { default as LsBanSquare } from './ban.svg';
export { default as LsCheckAlt } from "./check_alt.svg";
export { default as LsCrossAlt } from "./cross_alt.svg";
export { default as LsSparkSquare } from './spark.svg';
export { default as LsThumbsDown } from './thumbs_down.svg';
export { default as LsThumbsUp } from './thumbs_up.svg';
export { default as LsStarSquare } from './star_square.svg';
export { default as LSPlus } from './plus.svg';
export { default as LsRefresh } from "./refresh.svg";
export { default as LsGear } from "./gear.svg";
export { default as LsGearNewUI } from "./gear_new_menu.svg";
export { default as CommentCheck } from "./comment_check.svg";
export { default as CommentRed } from "./comment_red.svg";
export { default as LsGrid } from "./grid.svg";
export { default as LsList } from "./list.svg";
export { default as LsRefresh2 } from "./refresh2.svg";
export { ReactComponent as LsAnnotation } from './annotation.svg';
export { ReactComponent as LsBanSquare } from './ban.svg';
export { ReactComponent as LsCheckAlt } from "./check_alt.svg";
export { ReactComponent as LsCrossAlt } from "./cross_alt.svg";
export { ReactComponent as LsSparkSquare } from './spark.svg';
export { ReactComponent as LsThumbsDown } from './thumbs_down.svg';
export { ReactComponent as LsThumbsUp } from './thumbs_up.svg';
export { ReactComponent as LsStarSquare } from './star_square.svg';
export { ReactComponent as LSPlus } from './plus.svg';
export { ReactComponent as LsRefresh } from "./refresh.svg";
export { ReactComponent as LsGear } from "./gear.svg";
export { ReactComponent as LsGearNewUI } from "./gear_new_menu.svg";
export { ReactComponent as CommentCheck } from "./comment_check.svg";
export { ReactComponent as CommentRed } from "./comment_red.svg";
export { ReactComponent as LsGrid } from "./grid.svg";
export { ReactComponent as LsList } from "./list.svg";
export { ReactComponent as LsRefresh2 } from "./refresh2.svg";
4 changes: 2 additions & 2 deletions src/dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Button } from "./components/Common/Button/Button";

const API_GATEWAY = process.env.API_GATEWAY;
const LS_ACCESS_TOKEN = process.env.LS_ACCESS_TOKEN;
const API_GATEWAY = process.env.API_GATEWAY || process.env.NX_API_GATEWAY;
const LS_ACCESS_TOKEN = process.env.LS_ACCESS_TOKEN || process.env.NX_LS_ACCESS_TOKEN;

/**
* @param {import("../src/sdk/dm-sdk").DataManager} DataManager
Expand Down
2 changes: 2 additions & 0 deletions src/sdk/lsf-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ export class LSFWrapper {
}

setLSFTask(task, annotationID, fromHistory) {
if (!this.lsf) return;

const hasChangedTasks = this.lsf?.task?.id !== task?.id && task?.id;

this.setLoading(true, hasChangedTasks);
Expand Down
1 change: 1 addition & 0 deletions webpack.config-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ module.exports = ({ withDevServer = false } = {}) => ({
use: [{
loader: '@svgr/webpack',
options: {
exportType: 'named',
ref: true,
},
}],
Expand Down

0 comments on commit f7e188d

Please sign in to comment.