mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* display main data * display rest of tx fields * placeholder data * always show tabs * manage error and retries on details tab * don't retry if degraded view is active * fix tests * fix tx receipt * change styles and wording for warning * tweaks * gray alert style change and update screenshots * add retries to RPC call * fixes after merge
24 lines
529 B
TypeScript
24 lines
529 B
TypeScript
import { Alert, Skeleton, chakra } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import config from 'configs/app';
|
|
|
|
interface Props {
|
|
isLoading?: boolean;
|
|
className?: string;
|
|
}
|
|
|
|
const TestnetWarning = ({ isLoading, className }: Props) => {
|
|
if (!config.chain.isTestnet) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Skeleton className={ className } isLoaded={ !isLoading }>
|
|
<Alert status="warning">This is a testnet transaction only</Alert>
|
|
</Skeleton>
|
|
);
|
|
};
|
|
|
|
export default React.memo(chakra(TestnetWarning));
|