diff --git a/package.json b/package.json index 2f37e111e..350b0cee2 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,10 @@ "author": "The CoreUI Team (https://github.com/orgs/coreui/people)", "scripts": { "build": "react-scripts build", - "build:n17": "react-scripts --openssl-legacy-provider build", "changelog": "auto-changelog --starting-version 4.1.0 --commit-limit false --hide-credit", "eject": "react-scripts eject", "lint": "eslint \"src/**/*.js\"", "start": "react-scripts start", - "start:n17": "react-scripts --openssl-legacy-provider start", "test": "react-scripts test", "test:cov": "npm test -- --coverage --watchAll=false", "test:debug": "react-scripts --inspect-brk test --runInBand" diff --git a/src/views/dashboard/Dashboard.js b/src/views/dashboard/Dashboard.js index d4fac08ac..e979a0c16 100644 --- a/src/views/dashboard/Dashboard.js +++ b/src/views/dashboard/Dashboard.js @@ -1,4 +1,4 @@ -import React, { lazy } from 'react' +import React from 'react' import { CAvatar, @@ -51,13 +51,11 @@ import avatar4 from 'src/assets/images/avatars/4.jpg' import avatar5 from 'src/assets/images/avatars/5.jpg' import avatar6 from 'src/assets/images/avatars/6.jpg' -const WidgetsDropdown = lazy(() => import('../widgets/WidgetsDropdown.js')) -const WidgetsBrand = lazy(() => import('../widgets/WidgetsBrand.js')) +import WidgetsBrand from '../widgets/WidgetsBrand' +import WidgetsDropdown from '../widgets/WidgetsDropdown' const Dashboard = () => { - const random = (min, max) => { - return Math.floor(Math.random() * (max - min + 1) + min) - } + const random = (min, max) => Math.floor(Math.random() * (max - min + 1) + min) const progressExample = [ { title: 'Visits', value: '29.703 Users', percent: 40, color: 'success' },