Skip to content

Commit ced3b47

Browse files
committed
refactor: use configure for ydb-ui-components
1 parent e15438a commit ced3b47

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

package-lock.json

Lines changed: 3 additions & 3 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
@@ -40,7 +40,7 @@
4040
"reselect": "4.0.0",
4141
"sass": "1.32.8",
4242
"web-vitals": "1.1.2",
43-
"ydb-ui-components": "2.2.0"
43+
"ydb-ui-components": "2.3.0"
4444
},
4545
"scripts": {
4646
"start": "react-app-rewired start",

src/containers/App/App.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {connect} from 'react-redux';
33
import PropTypes from 'prop-types';
44

55
import {configure as configureUiKit} from '@yandex-cloud/uikit';
6-
import {i18n as YDBComponentsI18N} from 'ydb-ui-components';
6+
import {configure as configureYdbUiComponents} from 'ydb-ui-components';
77
import {i18n, Lang} from '../../utils/i18n';
88

99
import ContentWrapper, {Content} from './Content';
@@ -27,10 +27,8 @@ class App extends React.Component {
2727
constructor(props) {
2828
super(props);
2929
i18n.setLang(Lang.En);
30-
YDBComponentsI18N.setLang(Lang.En);
31-
configureUiKit({
32-
lang: Lang.En,
33-
});
30+
configureYdbUiComponents({lang: Lang.En});
31+
configureUiKit({lang: Lang.En});
3432
}
3533

3634
componentDidMount() {

0 commit comments

Comments
 (0)