mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-10-15 17:11:29 +08:00

* feat: base setup for in product home page * feat: base state * feat: add empty states for alerts, traces, dashboards, saved views * feat: add checklist component * feat: integrate all panels * feat: integrate preference api and clean up components * feat: handle done and skip states of the checklist * feat: update ui * feat: update ui * feat: code cleanup * feat: add events * feat: support time interval change in services * feat: add service time change event and cleanup code * feat: handle light mode * feat: address review comments * fix: routing issues * fix: testcase snapshot, a minor ui improvements * fix: noopener typo in window.open
33 lines
606 B
TypeScript
33 lines
606 B
TypeScript
import NotFoundImage from 'assets/NotFound';
|
|
import ROUTES from 'constants/routes';
|
|
|
|
import { defaultText } from './constant';
|
|
import { Button, Container, Text, TextContainer } from './styles';
|
|
|
|
function NotFound({ text = defaultText }: Props): JSX.Element {
|
|
return (
|
|
<Container>
|
|
<NotFoundImage />
|
|
|
|
<TextContainer>
|
|
<Text>{text}</Text>
|
|
<Text>Page Not Found</Text>
|
|
</TextContainer>
|
|
|
|
<Button to={ROUTES.HOME} tabIndex={0}>
|
|
Return Home
|
|
</Button>
|
|
</Container>
|
|
);
|
|
}
|
|
|
|
interface Props {
|
|
text?: string;
|
|
}
|
|
|
|
NotFound.defaultProps = {
|
|
text: defaultText,
|
|
};
|
|
|
|
export default NotFound;
|