1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

JS-4724: Util imports

This commit is contained in:
Andrew Simachev 2024-06-18 14:11:58 +02:00
parent 7566e5403c
commit 7d255a55de
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
288 changed files with 1885 additions and 1892 deletions

View file

@ -6,7 +6,7 @@ import { RouteComponentProps } from 'react-router';
import { Provider } from 'mobx-react';
import { configure } from 'mobx';
import { ListMenu } from 'Component';
import { S, C, UtilRouter, UtilData } from 'Lib';
import { S, C, U } from 'Lib';
import Index from './iframe/index';
import Create from './iframe/create';
@ -69,7 +69,7 @@ class Iframe extends React.Component {
};
componentDidMount () {
UtilRouter.init(history);
U.Router.init(history);
const win = $(window);
@ -89,7 +89,7 @@ class Iframe extends React.Component {
S.Extension.setTabUrl(msg.url);
S.Extension.setHtml(msg.html);
UtilRouter.go('/create', {});
U.Router.go('/create', {});
sendResponse({});
break;
};
@ -103,7 +103,7 @@ class Iframe extends React.Component {
return;
};
UtilData.destroySubscriptions(() => {
U.Data.destroySubscriptions(() => {
C.WalletCloseSession(S.Auth.token, () => S.Auth.tokenSet(''));
});
});