mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* fallback components * home page graphs: fix tab title flickering * degraded views * fix tx degraded view when initial query is refetching * call unwatch when components unmount * tests * use context to store rpc data * stats degraded state * update tests * RPC data hint * fixes * review fixes * condition fix * cover ads in test
10 lines
324 B
TypeScript
10 lines
324 B
TypeScript
import type { BoxProps } from '@chakra-ui/react';
|
|
import { Box } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
const FallbackBox = (props: BoxProps) => {
|
|
return <Box h={ 3 } bgColor={{ _light: 'blackAlpha.50', _dark: 'whiteAlpha.100' }} borderRadius="sm" { ...props }/>;
|
|
};
|
|
|
|
export default React.memo(FallbackBox);
|