mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
Update dependency 3 (#5344)
* update react react-dom prop-types * update seafile-editor version * install deep-copy denpendency * update router version * repair focus bug * optimize code * optimize code
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import ToastManager from './toastManager';
|
||||
|
||||
const isBrowser =
|
||||
@@ -17,13 +17,13 @@ export default class Toaster {
|
||||
container.setAttribute('data-evergreen-toaster-container', '');
|
||||
document.body.appendChild(container);
|
||||
|
||||
ReactDOM.render(
|
||||
const root = createRoot(container);
|
||||
root.render(
|
||||
<ToastManager
|
||||
bindNotify={this._bindNotify}
|
||||
bindGetToasts={this._bindGetToasts}
|
||||
bindCloseAll={this._bindCloseAll}
|
||||
/>,
|
||||
container
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user