From 2f89335c97268b29a1d99b70b759e91b30d26eb3 Mon Sep 17 00:00:00 2001 From: MrTRyy Date: Fri, 8 Dec 2023 14:22:14 +0100 Subject: [PATCH] remove: trash --- .../FlexBoxTemplateNav/FlexBoxTemplateNav.tsx | 20 ---------------- .../utils/FlexBoxTemplateNav/index.ts | 1 - .../SwitchIndicatorList.tsx | 24 ------------------- .../utils/SwitchIndicatorList/index.ts | 1 - .../FancyHeader/HeaderNav/HeaderNav.tsx | 24 ------------------- 5 files changed, 70 deletions(-) delete mode 100644 src/components/molecules/FancyNavBar/utils/FlexBoxTemplateNav/FlexBoxTemplateNav.tsx delete mode 100644 src/components/molecules/FancyNavBar/utils/FlexBoxTemplateNav/index.ts delete mode 100644 src/components/molecules/FancyNavBar/utils/SwitchIndicatorList/SwitchIndicatorList.tsx delete mode 100644 src/components/molecules/FancyNavBar/utils/SwitchIndicatorList/index.ts delete mode 100644 src/components/organisms/FancyHeader/HeaderNav/HeaderNav.tsx diff --git a/src/components/molecules/FancyNavBar/utils/FlexBoxTemplateNav/FlexBoxTemplateNav.tsx b/src/components/molecules/FancyNavBar/utils/FlexBoxTemplateNav/FlexBoxTemplateNav.tsx deleted file mode 100644 index 9ad4febc0..000000000 --- a/src/components/molecules/FancyNavBar/utils/FlexBoxTemplateNav/FlexBoxTemplateNav.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from 'react'; -import { FancyFlexBox } from '@/components/templates/FancyFlexBox'; - -type TFlexBoxTemplateNavProps = { - children?: React.ReactNode; -} & React.ComponentProps; -export default function FlexBoxTemplateNav(props: TFlexBoxTemplateNavProps) { - const { children, ...flexProps } = props; - - return ( - - {children} - - ); -} diff --git a/src/components/molecules/FancyNavBar/utils/FlexBoxTemplateNav/index.ts b/src/components/molecules/FancyNavBar/utils/FlexBoxTemplateNav/index.ts deleted file mode 100644 index 658a67631..000000000 --- a/src/components/molecules/FancyNavBar/utils/FlexBoxTemplateNav/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as FlexBoxTemplateNav } from './FlexBoxTemplateNav'; diff --git a/src/components/molecules/FancyNavBar/utils/SwitchIndicatorList/SwitchIndicatorList.tsx b/src/components/molecules/FancyNavBar/utils/SwitchIndicatorList/SwitchIndicatorList.tsx deleted file mode 100644 index 9de553efb..000000000 --- a/src/components/molecules/FancyNavBar/utils/SwitchIndicatorList/SwitchIndicatorList.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import React from 'react'; - -import { SwitchList } from '@/components/molecules/SwitchList'; - -type TSwitchIndicatorListProps = { - children?: React.ReactNode; -} & React.ComponentProps; - -export default function SwitchIndicatorList(props: TSwitchIndicatorListProps) { - const { children, flexBoxProps, ...switchListProps } = props; - return ( - - {children} - - ); -} diff --git a/src/components/molecules/FancyNavBar/utils/SwitchIndicatorList/index.ts b/src/components/molecules/FancyNavBar/utils/SwitchIndicatorList/index.ts deleted file mode 100644 index 64c3f1705..000000000 --- a/src/components/molecules/FancyNavBar/utils/SwitchIndicatorList/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default as SwitchIndicatorList } from './SwitchIndicatorList'; diff --git a/src/components/organisms/FancyHeader/HeaderNav/HeaderNav.tsx b/src/components/organisms/FancyHeader/HeaderNav/HeaderNav.tsx deleted file mode 100644 index a2bc4aff4..000000000 --- a/src/components/organisms/FancyHeader/HeaderNav/HeaderNav.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import React from 'react'; - -import { RawNav } from '@/components/atoms/RawNav'; -import { RawUL } from '@/components/atoms/RawUL'; -import { RawLI } from '@/components/atoms/RawLI'; - -interface IHeaderNav { - children?: React.ReactNode; -} -export default function HeaderNav({ children }: IHeaderNav) { - const MapedChilds = React.Children.map(children, (child) => { - console.log(child); - if (React.isValidElement(child)) { - return {child}; - } - return child; - }); - - return ( - - {MapedChilds} - - ); -}