26 | )
27 | )
28 | }
29 |
--------------------------------------------------------------------------------
/frontend/src/components/Loading.tsx:
--------------------------------------------------------------------------------
1 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
4 | // with the License. A copy of the License is located at
5 | //
6 | // http://aws.amazon.com/apache2.0/
7 | //
8 | // or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
9 | // OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
10 | // limitations under the License.
11 | import Spinner from '@cloudscape-design/components/spinner'
12 | import {useTranslation} from 'react-i18next'
13 |
14 | export default function Loading(props: any) {
15 | const {t} = useTranslation()
16 | const defaultText = t('components.Loading.text')
17 | return (
18 |
33 | )
34 | }
35 |
--------------------------------------------------------------------------------
/frontend/src/components/NoMatch.tsx:
--------------------------------------------------------------------------------
1 | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2 | //
3 | // Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
4 | // with the License. A copy of the License is located at
5 | //
6 | // http://aws.amazon.com/apache2.0/
7 | //
8 | // or in the "LICENSE.txt" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
9 | // OR CONDITIONS OF ANY KIND, express or implied. See the License for the specific language governing permissions and
10 | // limitations under the License.
11 |
12 | import {
13 | Container,
14 | ContentLayout,
15 | Link,
16 | TextContent,
17 | } from '@cloudscape-design/components'
18 | import React from 'react'
19 | import errorPage from './../../public/img/error_pages_illustration.svg'
20 | import Image from 'next/image'
21 | import {useTranslation} from 'react-i18next'
22 | import Layout from '../old-pages/Layout'
23 | import {DefaultHelpPanel} from './help-panel/DefaultHelpPanel'
24 | import {useHelpPanel} from './help-panel/HelpPanel'
25 |
26 | export function NoMatch() {
27 | const {t} = useTranslation()
28 | useHelpPanel()
29 |
30 | return (
31 |
32 | >}>
33 |
34 |
35 |
36 |