From 27f482533e9f845ace16a98d4e99d8e48d9f3f48 Mon Sep 17 00:00:00 2001 From: Birk Johansson Date: Fri, 19 May 2023 11:39:01 +0200 Subject: [PATCH] refactor: remove components/utils folder --- src/app/sidebar/Sidebar.tsx | 2 +- src/components/{utils => }/HidePreventUnmount.tsx | 0 src/components/index.tsx | 3 ++- src/components/utils/index.tsx | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) rename src/components/{utils => }/HidePreventUnmount.tsx (100%) delete mode 100644 src/components/utils/index.tsx diff --git a/src/app/sidebar/Sidebar.tsx b/src/app/sidebar/Sidebar.tsx index e2438eea..66bbe3aa 100644 --- a/src/app/sidebar/Sidebar.tsx +++ b/src/app/sidebar/Sidebar.tsx @@ -1,7 +1,7 @@ import i18n from "@dhis2/d2-i18n"; import React, { useEffect, useState } from "react"; import { NavLink, useLocation, matchPath } from "react-router-dom"; -import { HidePreventUnmount } from "../../components/utils/HidePreventUnmount"; +import { HidePreventUnmount } from "../../components"; import styles from "./Sidebar.module.css"; import { LinkItem, diff --git a/src/components/utils/HidePreventUnmount.tsx b/src/components/HidePreventUnmount.tsx similarity index 100% rename from src/components/utils/HidePreventUnmount.tsx rename to src/components/HidePreventUnmount.tsx diff --git a/src/components/index.tsx b/src/components/index.tsx index 8575a19b..1d0402e4 100644 --- a/src/components/index.tsx +++ b/src/components/index.tsx @@ -1 +1,2 @@ -export { Loader } from './loading'; +export { Loader } from "./loading"; +export * from "./HidePreventUnmount"; diff --git a/src/components/utils/index.tsx b/src/components/utils/index.tsx deleted file mode 100644 index 8c576584..00000000 --- a/src/components/utils/index.tsx +++ /dev/null @@ -1 +0,0 @@ -export { HidePreventUnmount } from "./HidePreventUnmount";