fix: deprecated syntax of lower substr (#3013)

* fixed import error syntax

* replace lower.substr with lower.substring

* remove redundant parameter

* fixed import syntax error

* fixed import syntax error
This commit is contained in:
wangxuan 2022-11-11 02:29:55 +08:00 committed by GitHub
parent 173b6568fd
commit 08c58b0634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 5 deletions

View File

@ -365,5 +365,5 @@ export default class ExtensionManager {
* @param {string} lower
*/
function _capitalizeFirstCharacter(lower) {
return lower.charAt(0).toUpperCase() + lower.substr(1);
return lower.charAt(0).toUpperCase() + lower.substring(1);
}

View File

@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
import i18n from '@ohif/i18n';
import { I18nextProvider } from 'react-i18next';
import { BrowserRouter } from 'react-router-dom';
import Compose from './routes/Mode/Compose.tsx';
import Compose from './routes/Mode/Compose';
import {
DialogProvider,
@ -22,7 +22,7 @@ import {
import { AppConfigProvider } from '@state';
import createRoutes from './routes';
import appInit from './appInit.js';
import OpenIdConnectRoutes from './utils/OpenIdConnectRoutes.tsx';
import OpenIdConnectRoutes from './utils/OpenIdConnectRoutes';
let commandsManager, extensionManager, servicesManager, hotkeysManager;
@ -60,7 +60,6 @@ function App({ config, defaultExtensions, defaultModes }) {
servicesManager,
commandsManager,
hotkeysManager,
commandsManager,
routerBasename,
});
const {

View File

@ -2,7 +2,7 @@
* Entry point for development and production PWA builds.
*/
import 'regenerator-runtime/runtime';
import App from './App.tsx';
import App from './App';
import React from 'react';
import ReactDOM from 'react-dom';