mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Add prop type
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { Box, Center, Group, Stack } from '@mantine/core';
|
import { Box, Center, Group, Stack } from '@mantine/core';
|
||||||
|
import { FallbackProps } from 'react-error-boundary';
|
||||||
import { RiErrorWarningLine } from 'react-icons/ri';
|
import { RiErrorWarningLine } from 'react-icons/ri';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import { Button, Text } from '@/renderer/components';
|
import { Button, Text } from '@/renderer/components';
|
||||||
@@ -7,7 +8,7 @@ const Container = styled(Box)`
|
|||||||
background: var(--main-bg);
|
background: var(--main-bg);
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const ErrorFallback = ({ error, resetErrorBoundary }: any) => {
|
export const ErrorFallback = ({ error, resetErrorBoundary }: FallbackProps) => {
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
<Center sx={{ height: '100vh' }}>
|
<Center sx={{ height: '100vh' }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user