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

Commit c9bbd91

Browse files
Nijil Nirmalnijil-deriv
authored andcommitted
Smartcharts license issue
1 parent db5586f commit c9bbd91

File tree

4 files changed

+35
-19
lines changed

4 files changed

+35
-19
lines changed

gulp/bundle.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ gulp.task(
3131
gulp.task(
3232
'copy-js',
3333
gulp.parallel(done => {
34-
gulp.src(['./node_modules/@binary-com/smartcharts/dist/*.smartcharts.*']).pipe(gulp.dest('www/js/'));
34+
gulp.src(['./node_modules/smartcharts-beta/dist/*.smartcharts.*']).pipe(gulp.dest('www/js/'));
3535
done();
3636
})
3737
);
@@ -41,7 +41,7 @@ gulp.task(
4141
gulp.parallel(done => {
4242
gulp.src([
4343
'node_modules/jquery-ui-css/jquery-ui.min.css',
44-
'./node_modules/@binary-com/smartcharts/dist/smartcharts.css',
44+
'./node_modules/smartcharts-beta/dist/smartcharts.css',
4545
])
4646
.pipe(concatCss('bundle.css'))
4747
.pipe(rev())

package-lock.json

Lines changed: 29 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"webpack-stream": "^4.0.0"
103103
},
104104
"dependencies": {
105-
"@binary-com/smartcharts": "^0.6.1",
105+
"smartcharts-beta": "^0.8.0-betam.10",
106106
"binary-style": "^0.2.4",
107107
"blockly": "github:google/blockly#59e5ac6",
108108
"clone": "aminmarashi/clone#d97b4f",

src/botPage/view/Dialogs/Chart.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Share,
1010
CrosshairToggle,
1111
ChartSize,
12-
} from '@binary-com/smartcharts';
12+
} from 'smartcharts-beta';
1313
import React, { PureComponent } from 'react';
1414
import { translate } from '../../../common/i18n';
1515
import Dialog from './Dialog';
@@ -121,7 +121,7 @@ class ChartContent extends PureComponent {
121121

122122
renderControls = () => (
123123
<React.Fragment>
124-
<CrosshairToggle />
124+
<CrosshairToggle enabled={false} />
125125
<ChartTypes enabled={true} onChange={chartType => this.setState({ chartType })} />
126126
<Timeperiod enabled={true} onChange={granularity => this.setState({ granularity })} />
127127
<StudyLegend />
@@ -163,6 +163,7 @@ class ChartContent extends PureComponent {
163163
requestForget={this.requestForget.bind(this)}
164164
barriers={barriers}
165165
settings={this.settings}
166+
enabledNavigationWidget={false}
166167
/>
167168
);
168169
}

0 commit comments

Comments
 (0)