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

JS-3943: fix, refactoring

This commit is contained in:
Andrew Simachev 2024-02-08 14:26:45 +01:00
parent b41248584d
commit ecdb7dcad2
No known key found for this signature in database
GPG key ID: 49A163D0D14E6FD8
8 changed files with 41 additions and 49 deletions

View file

@ -1,12 +1,11 @@
import * as React from 'react';
import * as hs from 'history';
import $ from 'jquery';
import { Router, Route, Switch } from 'react-router-dom';
import { RouteComponentProps } from 'react-router';
import { Provider } from 'mobx-react';
import { configure } from 'mobx';
import { ListMenu } from 'Component';
import { dispatcher, C, UtilCommon, UtilRouter } from 'Lib';
import { UtilRouter } from 'Lib';
import { commonStore, authStore, blockStore, detailStore, dbStore, menuStore, popupStore, extensionStore } from 'Store';
import Index from './iframe/index';
@ -41,28 +40,6 @@ const rootStore = {
extensionStore,
};
declare global {
interface Window {
Electron: any;
$: any;
Anytype: any;
isWebVersion: boolean;
AnytypeGlobalConfig: any;
}
};
window.$ = $;
window.$ = $;
window.Anytype = {
Store: rootStore,
Lib: {
C,
UtilCommon,
dispatcher,
Storage,
},
};
class RoutePage extends React.Component<RouteComponentProps> {
render () {
const { match } = this.props;