From f43de03d7ae6ae2d2ac87046d807df7eadf53ebc Mon Sep 17 00:00:00 2001 From: Chuma McPhoy Date: Fri, 12 Jul 2024 14:36:13 +0200 Subject: [PATCH] chore: typing for sidepeek components --- components/TempDesignSystem/SidePeek/Content/index.tsx | 9 +++------ components/TempDesignSystem/SidePeek/Content/types.ts | 6 ++++++ components/TempDesignSystem/SidePeek/index.tsx | 9 ++++----- 3 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 components/TempDesignSystem/SidePeek/Content/types.ts diff --git a/components/TempDesignSystem/SidePeek/Content/index.tsx b/components/TempDesignSystem/SidePeek/Content/index.tsx index fd6aad425..4ac1a301e 100644 --- a/components/TempDesignSystem/SidePeek/Content/index.tsx +++ b/components/TempDesignSystem/SidePeek/Content/index.tsx @@ -5,6 +5,8 @@ import { Children, PropsWithChildren } from "react" import { CloseIcon } from "@/components/Icons" import Title from "@/components/TempDesignSystem/Text/Title" +import { SidePeekContentProps } from "./types" + import styles from "./content.module.css" export default function Content({ @@ -13,12 +15,7 @@ export default function Content({ contentKey, isActive = false, onClose, -}: PropsWithChildren<{ - title?: string - contentKey: string - isActive?: boolean - onClose?: () => void -}>) { +}: PropsWithChildren) { return isActive ? (