chore: fixed console warnings
This commit is contained in:
Родитель
dbd66c9122
Коммит
61189354bb
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,45 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" content="#000000">
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is added to the
|
||||
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
|
||||
-->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
Only files inside the `public` folder can be referenced from the HTML.
|
||||
|
||||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
||||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>React App</title>
|
||||
<script>
|
||||
var baseUrl = '';
|
||||
</script>
|
||||
</head>
|
||||
<body style="width: 1140px; margin: auto">
|
||||
<noscript>
|
||||
You need to enable JavaScript to run this app.
|
||||
</noscript>
|
||||
<div id="homepage-app-demo"></div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
|
||||
You can add webfonts, meta tags, or analytics to this file.
|
||||
The build step will place the bundled scripts into the <body> tag.
|
||||
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
</body>
|
||||
<script>
|
||||
window.renderAwesomeExample();
|
||||
</script>
|
||||
</html>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="theme-color" content="#000000">
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is added to the
|
||||
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
|
||||
-->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
||||
<!--
|
||||
Notice the use of %PUBLIC_URL% in the tags above.
|
||||
It will be replaced with the URL of the `public` folder during the build.
|
||||
Only files inside the `public` folder can be referenced from the HTML.
|
||||
|
||||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
||||
work correctly both with client-side routing and a non-root public URL.
|
||||
Learn how to configure a non-root public URL by running `npm run build`.
|
||||
-->
|
||||
<title>React App</title>
|
||||
<script>
|
||||
var baseUrl = '';
|
||||
</script>
|
||||
</head>
|
||||
<body style="width: 1140px; margin: auto">
|
||||
<noscript>
|
||||
You need to enable JavaScript to run this app.
|
||||
</noscript>
|
||||
<div id="homepage-app-demo"></div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
|
||||
You can add webfonts, meta tags, or analytics to this file.
|
||||
The build step will place the bundled scripts into the <body> tag.
|
||||
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -82,8 +82,8 @@ class App extends Component {
|
|||
let headerText = this.state.value.replace('Sales','');
|
||||
return (
|
||||
<Ripple>
|
||||
<div className="buttons-right">
|
||||
<Button primary={true} onClick={this.handleShare} className='mr-2'>Share</Button>
|
||||
<div className="buttons-right mt-1">
|
||||
<Button themeColor={'primary'} onClick={this.handleShare} className='mr-2'>Share</Button>
|
||||
<Button onClick={this.handlePDFExport}>Export to PDF</Button>
|
||||
</div>
|
||||
<div className="app-container" ref={(app) => this.app = app}>
|
||||
|
@ -128,7 +128,7 @@ class App extends Component {
|
|||
<p>Please enter the email address/es of the recipient/s.</p>
|
||||
<Input placeholder="example@progress.com"/>
|
||||
<DialogActionsBar>
|
||||
<Button primary={true} onClick={this.handleShare}>Share</Button>
|
||||
<Button themeColor={'primary'} onClick={this.handleShare}>Share</Button>
|
||||
<Button onClick={this.handleShare}>Cancel</Button>
|
||||
</DialogActionsBar>
|
||||
</Dialog>}
|
||||
|
|
|
@ -12,6 +12,7 @@ import {
|
|||
ChartTooltip
|
||||
} from '@progress/kendo-react-charts';
|
||||
|
||||
import 'hammerjs';
|
||||
|
||||
export const BarChartContainer = (props) => (
|
||||
<Chart style={{height:300}} zoomable={false}>
|
||||
|
|
14
src/index.js
14
src/index.js
|
@ -1,8 +1,6 @@
|
|||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import App from './App';
|
||||
|
||||
ReactDOM.render(
|
||||
<App />,
|
||||
document.getElementById('homepage-app-demo')
|
||||
);
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import App from './App';
|
||||
|
||||
const container = document.getElementById('homepage-app-demo');
|
||||
const root = createRoot(container);
|
||||
root.render(<App tab="home" />);
|
Загрузка…
Ссылка в новой задаче