From a138ca16eabdbf5cd9872e438c8657bb8db1fa50 Mon Sep 17 00:00:00 2001 From: "Alan P. C. Silva" <7315217+alanpcs@users.noreply.github.com> Date: Fri, 23 Oct 2020 19:46:25 -0300 Subject: [PATCH] Update deprecated type @deprecated as of recent React versions, function components can no longer be considered 'stateless'. Please use FunctionComponent instead. --- template/typescript/src/typings.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/template/typescript/src/typings.d.ts b/template/typescript/src/typings.d.ts index 9118bbc..8027a19 100644 --- a/template/typescript/src/typings.d.ts +++ b/template/typescript/src/typings.d.ts @@ -15,7 +15,7 @@ declare module '*.less' { export default content; } -interface SvgrComponent extends React.StatelessComponent> {} +interface SvgrComponent extends React.FunctionComponent> {} declare module '*.svg' { const svgUrl: string;