From 1bac9f26ed67ac0dd3f5aeba7c642a8bed5b7118 Mon Sep 17 00:00:00 2001 From: Artem Date: Mon, 8 Aug 2022 18:27:36 +0300 Subject: [PATCH] added React.ComponentPropsWithoutRef
--- src/App.tsx | 2 +- src/components/typography/Typography.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index ba2e15a..862448d 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,7 +5,7 @@ import Typography from "components/typography/Typography"; function App() { return ( <> - Hello World! + Hello World! ); } diff --git a/src/components/typography/Typography.tsx b/src/components/typography/Typography.tsx index 7ad9b98..9aa3fed 100644 --- a/src/components/typography/Typography.tsx +++ b/src/components/typography/Typography.tsx @@ -7,11 +7,9 @@ import { } from 'core/_variants' -type Props = { - children: React.ReactNode; +interface Props extends React.ComponentPropsWithoutRef<"div"> { htmlTag?: TypographyHtmlTagVariants | undefined; fontWeightVariant?: FontWeightVariants; - className?: string | undefined; }; const typographyFontWeightVariants: TypographyFontWeightVariantsMap = {