From a2cd983dad928a04f5dc402113e698ac2e992d88 Mon Sep 17 00:00:00 2001 From: Dhenain Ambroise Date: Mon, 11 Jan 2021 17:50:57 +0100 Subject: [PATCH] Extends DOMAttributes (necessary to use Emotion "css" props) --- src/components/utils/Text.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/utils/Text.tsx b/src/components/utils/Text.tsx index dff154f45..d23ad7985 100644 --- a/src/components/utils/Text.tsx +++ b/src/components/utils/Text.tsx @@ -1,9 +1,9 @@ -import React from 'react'; +import React, { DOMAttributes } from 'react'; type Props = { children: string; tag?: string | React.ReactType; -} +} & DOMAttributes /** * Automatically break lines for text