Skip to content

Commit

Permalink
add button to tx not found error screen
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Mar 21, 2024
1 parent 4a6ac17 commit 5a63649
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion ui/shared/AppError/custom/AppErrorTxNotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* eslint-disable max-len */
import { Box, OrderedList, ListItem, useColorModeValue, Flex, chakra } from '@chakra-ui/react';
import { Box, OrderedList, ListItem, useColorModeValue, Flex, chakra, Button } from '@chakra-ui/react';
import React from 'react';

import { route } from 'nextjs-routes';

import IconSvg from 'ui/shared/IconSvg';

import AppErrorTitle from '../AppErrorTitle';
Expand Down Expand Up @@ -51,6 +53,15 @@ const AppErrorTxNotFound = () => {
<span> for additional information.</span>
</ListItem>
</OrderedList>
<Button
mt={ 8 }
size="lg"
variant="outline"
as="a"
href={ route({ pathname: '/' }) }
>
Back to home
</Button>
</>
);
};
Expand Down

0 comments on commit 5a63649

Please sign in to comment.