Add prop type

This commit is contained in:
jeffvli
2022-11-19 20:49:47 -08:00
parent 24b0d37bd1
commit 5811069a0a
@@ -1,4 +1,5 @@
import { Box, Center, Group, Stack } from '@mantine/core';
import { FallbackProps } from 'react-error-boundary';
import { RiErrorWarningLine } from 'react-icons/ri';
import styled from 'styled-components';
import { Button, Text } from '@/renderer/components';
@@ -7,7 +8,7 @@ const Container = styled(Box)`
background: var(--main-bg);
`;
export const ErrorFallback = ({ error, resetErrorBoundary }: any) => {
export const ErrorFallback = ({ error, resetErrorBoundary }: FallbackProps) => {
return (
<Container>
<Center sx={{ height: '100vh' }}>