Changed optional parameter name to allow for more generic uses
This commit is contained in:
@@ -24,7 +24,7 @@ import { useNavigate } from 'react-router';
|
||||
interface IErrorPageProps {
|
||||
status: string;
|
||||
statusMessage: string;
|
||||
docPath?: string;
|
||||
additionalInfo?: string;
|
||||
}
|
||||
|
||||
const useStyles = makeStyles<BackstageTheme>(theme => ({
|
||||
@@ -42,7 +42,7 @@ const useStyles = makeStyles<BackstageTheme>(theme => ({
|
||||
export const ErrorPage = ({
|
||||
status,
|
||||
statusMessage,
|
||||
docPath,
|
||||
additionalInfo,
|
||||
}: IErrorPageProps) => {
|
||||
const classes = useStyles();
|
||||
const navigate = useNavigate();
|
||||
@@ -55,7 +55,7 @@ export const ErrorPage = ({
|
||||
ERROR {status}: {statusMessage}
|
||||
</Typography>
|
||||
<Typography variant="body1" className={classes.subtitle}>
|
||||
{docPath}
|
||||
{additionalInfo}
|
||||
</Typography>
|
||||
<Typography variant="h2" className={classes.title}>
|
||||
Looks like someone dropped the mic!
|
||||
|
||||
@@ -22,7 +22,7 @@ export const TechDocsNotFound = () => {
|
||||
<ErrorPage
|
||||
status="404"
|
||||
statusMessage="Documentation not found"
|
||||
docPath={window.location.pathname}
|
||||
additionalInfo={window.location.pathname}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user