From 29a6e1bb182d97c7e18fb3ba1f1fc3d0348909b1 Mon Sep 17 00:00:00 2001 From: prabhuignoto Date: Thu, 18 Jan 2024 15:48:51 +0530 Subject: [PATCH] updated prettier ignore file formatted files --- .prettierignore | 5 +++-- src/components/timeline/timeline.tsx | 1 - src/components/toolbar/index.tsx | 18 ++++++------------ 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.prettierignore b/.prettierignore index 8a8d436d..b53ccea0 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,4 @@ -src/examples env -icons \ No newline at end of file +icons +src/demo +src/examples \ No newline at end of file diff --git a/src/components/timeline/timeline.tsx b/src/components/timeline/timeline.tsx index 8e2ee68f..e425a096 100644 --- a/src/components/timeline/timeline.tsx +++ b/src/components/timeline/timeline.tsx @@ -202,7 +202,6 @@ const Timeline: React.FunctionComponent = ( useEffect(() => { const activeItem = items[activeTimelineItem || 0]; - if (items.length && activeItem) { // const item = items[activeItem]; const { title, cardTitle, cardSubtitle, cardDetailedText } = activeItem; diff --git a/src/components/toolbar/index.tsx b/src/components/toolbar/index.tsx index 363962f9..d5718611 100644 --- a/src/components/toolbar/index.tsx +++ b/src/components/toolbar/index.tsx @@ -1,17 +1,11 @@ -import { FunctionComponent } from "react"; - - -export type ToolbarProps = { - children?: React.ReactNode | React.ReactNode[]; -} - +import { FunctionComponent } from 'react'; +export type ToolbarProps = { + children?: React.ReactNode | React.ReactNode[]; +}; const Toolbar: FunctionComponent = (props) => { - return
- -
-} - + return
; +}; export { Toolbar };