Browse Source

React UI: Mark not-yet-done pages as under construction (#6277)

This is a quick change because the release is about to be cut in a few
hours and it would be good to clarify to users what the empty pages in
the new UI are about.

Signed-off-by: Julius Volz <julius.volz@gmail.com>
pull/6279/head
Julius Volz 5 years ago committed by GitHub
parent
commit
431844f0a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      web/ui/react-app/src/pages/Alerts.tsx
  2. 10
      web/ui/react-app/src/pages/Rules.tsx
  3. 10
      web/ui/react-app/src/pages/Services.tsx
  4. 10
      web/ui/react-app/src/pages/Targets.tsx

10
web/ui/react-app/src/pages/Alerts.tsx

@ -1,7 +1,15 @@
import React, { FC } from 'react';
import { RouteComponentProps } from '@reach/router';
import PathPrefixProps from '../PathPrefixProps';
import { Alert } from 'reactstrap';
const Alerts: FC<RouteComponentProps & PathPrefixProps> = props => <div>Alerts page</div>;
const Alerts: FC<RouteComponentProps & PathPrefixProps> = ({ pathPrefix }) => (
<>
<h2>Alerts</h2>
<Alert color="warning">
This page is still under construction. Please try it in the <a href={`${pathPrefix}/alerts`}>Classic UI</a>.
</Alert>
</>
);
export default Alerts;

10
web/ui/react-app/src/pages/Rules.tsx

@ -1,7 +1,15 @@
import React, { FC } from 'react';
import { RouteComponentProps } from '@reach/router';
import PathPrefixProps from '../PathPrefixProps';
import { Alert } from 'reactstrap';
const Rules: FC<RouteComponentProps & PathPrefixProps> = () => <div>Rules page</div>;
const Rules: FC<RouteComponentProps & PathPrefixProps> = ({ pathPrefix }) => (
<>
<h2>Rules</h2>
<Alert color="warning">
This page is still under construction. Please try it in the <a href={`${pathPrefix}/rules`}>Classic UI</a>.
</Alert>
</>
);
export default Rules;

10
web/ui/react-app/src/pages/Services.tsx

@ -1,7 +1,15 @@
import React, { FC } from 'react';
import { RouteComponentProps } from '@reach/router';
import PathPrefixProps from '../PathPrefixProps';
import { Alert } from 'reactstrap';
const Services: FC<RouteComponentProps & PathPrefixProps> = () => <div>Services page</div>;
const Services: FC<RouteComponentProps & PathPrefixProps> = ({ pathPrefix }) => (
<>
<h2>Service Discovery</h2>
<Alert color="warning">
This page is still under construction. Please try it in the <a href={`${pathPrefix}/service-discovery`}>Classic UI</a>.
</Alert>
</>
);
export default Services;

10
web/ui/react-app/src/pages/Targets.tsx

@ -1,7 +1,15 @@
import React, { FC } from 'react';
import { RouteComponentProps } from '@reach/router';
import PathPrefixProps from '../PathPrefixProps';
import { Alert } from 'reactstrap';
const Targets: FC<RouteComponentProps & PathPrefixProps> = () => <div>Targets page</div>;
const Targets: FC<RouteComponentProps & PathPrefixProps> = ({ pathPrefix }) => (
<>
<h2>Targets</h2>
<Alert color="warning">
This page is still under construction. Please try it in the <a href={`${pathPrefix}/targets`}>Classic UI</a>.
</Alert>
</>
);
export default Targets;

Loading…
Cancel
Save