From 67971c0799cec98fbe3e4d3bbd9c818b7da4c1e9 Mon Sep 17 00:00:00 2001 From: leko Date: Mon, 9 May 2022 15:58:37 +0200 Subject: [PATCH] feat: add docker callback in result --- app/components/InfoMessage.tsx | 18 ++++++++++++++++++ app/components/TestAlert.tsx | 29 ----------------------------- app/components/ValidationResult.tsx | 5 ++++- app/pages/_app.tsx | 17 +++++++++++++++-- 4 files changed, 37 insertions(+), 32 deletions(-) create mode 100644 app/components/InfoMessage.tsx delete mode 100644 app/components/TestAlert.tsx diff --git a/app/components/InfoMessage.tsx b/app/components/InfoMessage.tsx new file mode 100644 index 0000000..d4a9938 --- /dev/null +++ b/app/components/InfoMessage.tsx @@ -0,0 +1,18 @@ +import { Alert, Box, Container, Stack } from '@mui/material'; +import theme from '../styles/theme'; + +const InfoMessage = (props: any) => { + return ( + + + + + {props.children} + + + + + ); +}; + +export default InfoMessage; diff --git a/app/components/TestAlert.tsx b/app/components/TestAlert.tsx deleted file mode 100644 index 636d0f9..0000000 --- a/app/components/TestAlert.tsx +++ /dev/null @@ -1,29 +0,0 @@ -import ArrowForwardIcon from '@mui/icons-material/ArrowForward'; -import { Alert, Box, Container, Stack } from '@mui/material'; -import Link from 'next/link'; -import theme from '../styles/theme'; - -const TestAlert = () => { - return ( - - - - - Note that this is an early build, please provide feedback in this form or one of the channels listed to the right - - - - - - ); -}; - -export default TestAlert; diff --git a/app/components/ValidationResult.tsx b/app/components/ValidationResult.tsx index 3b11791..6209c3a 100644 --- a/app/components/ValidationResult.tsx +++ b/app/components/ValidationResult.tsx @@ -4,6 +4,7 @@ import Link from 'next/link'; import { useRouter } from 'next/router'; import React from 'react'; import ErrorAlert from './ErrorAlert'; +import InfoMessage from './InfoMessage'; import TaskRow from './TaskRow'; import { Session } from '../api/client'; import useApiClient from '../hooks/useApiClient'; @@ -63,7 +64,6 @@ const ValidationResult = (props: ValidationResultProps) => { setAnchorEl(null); }; - React.useEffect(() => { if (!session) { return; @@ -114,6 +114,9 @@ const ValidationResult = (props: ValidationResultProps) => { Validation result { session && [{session.id}] } + + Are you interested in diving deeper? Consider testing it locally with Docker + { tasks && tasks.length ? ( tasks.map(task => ) diff --git a/app/pages/_app.tsx b/app/pages/_app.tsx index 1289bdd..4cd9e24 100644 --- a/app/pages/_app.tsx +++ b/app/pages/_app.tsx @@ -1,11 +1,13 @@ +import ArrowForwardIcon from '@mui/icons-material/ArrowForward'; import { AssignmentRounded, HomeRounded } from '@mui/icons-material'; import { ThemeProvider } from '@mui/material/styles'; import { AppProps } from 'next/app'; +import Link from 'next/link'; import BugReport from '../components/BugReport'; import Footer from '../components/Footer'; import NavBar from '../components/NavBar'; import NavDial from '../components/NavDial'; -import TestAlert from '../components/TestAlert'; +import InfoMessage from '../components/InfoMessage'; import theme from '../styles/theme'; import '../styles/globals.css'; @@ -22,7 +24,18 @@ const menuItems = [{ const App = ({ Component, pageProps }: AppProps) => { return ( - + + Note that this is an early build, please provide feedback in this form or one of the channels listed to the right + +