From 5811069a0a672158aa34ff86bf2ac6c7176f73f5 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sat, 19 Nov 2022 20:49:47 -0800 Subject: [PATCH] Add prop type --- .../features/action-required/components/error-fallback.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/renderer/features/action-required/components/error-fallback.tsx b/src/renderer/features/action-required/components/error-fallback.tsx index 34f865bff..3143317a2 100644 --- a/src/renderer/features/action-required/components/error-fallback.tsx +++ b/src/renderer/features/action-required/components/error-fallback.tsx @@ -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 (