From 8864907758cd3484bd0f3399b2fdc81b91607f73 Mon Sep 17 00:00:00 2001 From: Daniel Sil Date: Mon, 18 Sep 2023 15:49:41 +0200 Subject: [PATCH] chore: change type to interface Following new lint rules --- .../src/Card/CardSection/components/Expandable.tsx | 4 ++-- packages/orbit-components/src/Card/components/Header.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/orbit-components/src/Card/CardSection/components/Expandable.tsx b/packages/orbit-components/src/Card/CardSection/components/Expandable.tsx index 6a76f32d72..1b48cb81be 100644 --- a/packages/orbit-components/src/Card/CardSection/components/Expandable.tsx +++ b/packages/orbit-components/src/Card/CardSection/components/Expandable.tsx @@ -3,12 +3,12 @@ import * as React from "react"; import Slide from "../../../utils/Slide"; import useBoundingRect from "../../../hooks/useBoundingRect"; -type Props = { +interface Props { expanded?: boolean; children?: React.ReactNode; slideID: string; labelID: string; -}; +} export default function Expandable({ expanded, children, slideID, labelID }: Props) { const [{ height }, ref] = useBoundingRect({ height: expanded ? null : 0 }); diff --git a/packages/orbit-components/src/Card/components/Header.tsx b/packages/orbit-components/src/Card/components/Header.tsx index bf34a03fbf..7839f375b1 100644 --- a/packages/orbit-components/src/Card/components/Header.tsx +++ b/packages/orbit-components/src/Card/components/Header.tsx @@ -10,7 +10,7 @@ import Text from "../../Text"; import Close from "../../icons/Close"; import ButtonLink from "../../ButtonLink"; -type Props = { +interface Props { description?: React.ReactNode; actions?: React.ReactNode; onClose?: Common.Event>; @@ -22,7 +22,7 @@ type Props = { expandable?: boolean; expanded?: boolean; header?: React.ReactNode; -}; +} const Header = ({ description,