mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 20:55:03 +01:00
react app works
This commit is contained in:
parent
bd0a39dd7a
commit
5befe288e5
15 changed files with 187 additions and 109 deletions
20
amqp_dashboard/frontend/src/app.tsx
Normal file
20
amqp_dashboard/frontend/src/app.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import React from 'react';
|
||||
import DataPage from './components/data-page';
|
||||
import './app.css';
|
||||
|
||||
const IS_PROD = process.env.NODE_ENV === 'production';
|
||||
|
||||
const URL_PREFIX = IS_PROD ? '' : 'http://localhost:8080/';
|
||||
|
||||
const App = () => {
|
||||
return (
|
||||
<div className="app">
|
||||
<header className="header">
|
||||
<h1>AMQP Dashboard</h1>
|
||||
</header>
|
||||
<DataPage prefix={URL_PREFIX} />
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
Loading…
Add table
Add a link
Reference in a new issue