mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* update csv export text * fix pw tests * base layout and customization for home page and search results page * refactor rest of the pages * refactor AppError * move header padding to layout * move nextjs utils to separate folder * combine PageServer and Page * make useQueryClientConfig hook * add tests * remove unused var * fix envs for pw * fix pw tests
32 lines
776 B
TypeScript
32 lines
776 B
TypeScript
import { Button } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { route } from 'nextjs-routes';
|
|
|
|
import AppErrorIcon from '../AppErrorIcon';
|
|
import AppErrorTitle from '../AppErrorTitle';
|
|
|
|
interface Props {
|
|
hash?: string;
|
|
}
|
|
|
|
const AppErrorBlockConsensus = ({ hash }: Props) => {
|
|
return (
|
|
<>
|
|
<AppErrorIcon statusCode={ 404 }/>
|
|
<AppErrorTitle title="Block removed due to chain reorganization"/>
|
|
<Button
|
|
mt={ 8 }
|
|
size="lg"
|
|
variant="outline"
|
|
as="a"
|
|
href={ hash ? route({ pathname: '/block/[height_or_hash]', query: { height_or_hash: hash } }) : route({ pathname: '/' }) }
|
|
>
|
|
{ hash ? 'View reorg' : 'Back to home' }
|
|
</Button>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default AppErrorBlockConsensus;
|