From 84d59c89afa88203b6cef527674b50e8f5c95bc1 Mon Sep 17 00:00:00 2001 From: Ross Chapman Date: Thu, 7 Nov 2024 08:30:15 -0800 Subject: [PATCH] Updates imports to absolute --- app/App.tsx | 6 ++++-- app/components/listing/MapOfLocations.tsx | 2 +- app/components/search/SearchResults/SearchResults.tsx | 2 +- app/components/ui/index.ts | 5 ----- app/pages/AboutPage/AboutPage.tsx | 2 +- app/pages/FaqPage/FaqPage.tsx | 2 +- app/pages/OrganizationListingPage.tsx | 2 +- .../ServiceDiscoveryResults/ServiceDiscoveryResults.tsx | 2 +- app/pages/ServiceListingPage/ServiceListingPage.tsx | 3 ++- 9 files changed, 12 insertions(+), 14 deletions(-) delete mode 100644 app/components/ui/index.ts diff --git a/app/App.tsx b/app/App.tsx index 33db276fe..449c9ee6c 100644 --- a/app/App.tsx +++ b/app/App.tsx @@ -4,14 +4,16 @@ import React, { useEffect, useState } from "react"; // https://support.google.com/analytics/answer/12938611#zippy=%2Cin-this-article import ReactGA_4 from "react-ga4"; import { Helmet } from "react-helmet-async"; -import { useLocation, useNavigate } from "react-router-dom"; +import { useLocation } from "react-router-dom"; import { GeoCoordinates, getLocation, websiteConfig, AppProvider, } from "./utils"; -import { Footer, Navigation, Loader } from "./components/ui"; +import { Footer } from "components/ui/Footer/Footer"; +import { Navigation } from "components/ui/Navigation/Navigation"; +import { Loader } from "components/ui/Loader"; import MetaImage from "./assets/img/Our415_OG.png"; import styles from "./App.module.scss"; diff --git a/app/components/listing/MapOfLocations.tsx b/app/components/listing/MapOfLocations.tsx index 4f50e452d..0b4de6169 100644 --- a/app/components/listing/MapOfLocations.tsx +++ b/app/components/listing/MapOfLocations.tsx @@ -2,7 +2,7 @@ import React from "react"; import GoogleMap from "google-map-react"; import config from "../../config"; import { LocationDetails } from "../../models"; -import { Loader } from "../ui"; +import { Loader } from "components/ui/Loader"; import LocationTimesAccordion from "./LocationTimesAccordion"; import { createMapOptions, diff --git a/app/components/search/SearchResults/SearchResults.tsx b/app/components/search/SearchResults/SearchResults.tsx index 0c56ab032..b1fe0746f 100644 --- a/app/components/search/SearchResults/SearchResults.tsx +++ b/app/components/search/SearchResults/SearchResults.tsx @@ -12,7 +12,7 @@ import { } from "react-instantsearch"; import styles from "./SearchResults.module.scss"; import ClearSearchButton from "../Refinements/ClearSearchButton"; -import { Loader } from "components/ui"; +import { Loader } from "components/ui/Loader"; import ResultsPagination from "components/search/Pagination/ResultsPagination"; export enum SearchMapActions { diff --git a/app/components/ui/index.ts b/app/components/ui/index.ts deleted file mode 100644 index 9d1e1abd5..000000000 --- a/app/components/ui/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "../listing/ListingInfoTable"; -export * from "./Footer/Footer"; -export * from "./Loader"; -export * from "./MapElements"; -export * from "./Navigation/Navigation"; diff --git a/app/pages/AboutPage/AboutPage.tsx b/app/pages/AboutPage/AboutPage.tsx index 85b8f0233..3b177caac 100644 --- a/app/pages/AboutPage/AboutPage.tsx +++ b/app/pages/AboutPage/AboutPage.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Loader } from "components/ui"; +import { Loader } from "components/ui/Loader"; import { usePageContent } from "hooks/StrapiAPI"; import { Masthead } from "../../components/ui/Masthead/Masthead"; import { EmailSignup } from "../../components/EmailSignup/Emailsignup"; diff --git a/app/pages/FaqPage/FaqPage.tsx b/app/pages/FaqPage/FaqPage.tsx index 60db3f01a..f4e98c552 100644 --- a/app/pages/FaqPage/FaqPage.tsx +++ b/app/pages/FaqPage/FaqPage.tsx @@ -1,5 +1,5 @@ import React from "react"; -import { Loader } from "components/ui"; +import { Loader } from "components/ui/Loader"; import { usePageContent } from "hooks/StrapiAPI"; import { Masthead } from "../../components/ui/Masthead/Masthead"; import { EmailSignup } from "../../components/EmailSignup/Emailsignup"; diff --git a/app/pages/OrganizationListingPage.tsx b/app/pages/OrganizationListingPage.tsx index 5c1dd8fd3..85a3fded8 100644 --- a/app/pages/OrganizationListingPage.tsx +++ b/app/pages/OrganizationListingPage.tsx @@ -17,7 +17,7 @@ import { ServiceCard, WebsiteRenderer, } from "../components/listing"; -import { Loader } from "../components/ui"; +import { Loader } from "components/ui/Loader"; import { fetchOrganization, diff --git a/app/pages/ServiceDiscoveryResults/ServiceDiscoveryResults.tsx b/app/pages/ServiceDiscoveryResults/ServiceDiscoveryResults.tsx index bcd9b39ec..88fc51d65 100644 --- a/app/pages/ServiceDiscoveryResults/ServiceDiscoveryResults.tsx +++ b/app/pages/ServiceDiscoveryResults/ServiceDiscoveryResults.tsx @@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react"; import { useParams } from "react-router-dom"; import * as dataService from "utils/DataService"; import { DEFAULT_AROUND_PRECISION, useAppContext } from "utils"; -import { Loader } from "components/ui"; +import { Loader } from "components/ui/Loader"; import SearchResults from "components/search/SearchResults/SearchResults"; import Sidebar from "components/search/Sidebar/Sidebar"; import { Header } from "components/search/Header/Header"; diff --git a/app/pages/ServiceListingPage/ServiceListingPage.tsx b/app/pages/ServiceListingPage/ServiceListingPage.tsx index 2e4e44d79..d6993ba78 100644 --- a/app/pages/ServiceListingPage/ServiceListingPage.tsx +++ b/app/pages/ServiceListingPage/ServiceListingPage.tsx @@ -9,7 +9,8 @@ import { ServiceCard, ContactInfoTableRows, } from "components/listing"; -import { ListingInfoTable, Loader } from "components/ui"; +import { ListingInfoTable } from "components/listing/ListingInfoTable"; +import { Loader } from "components/ui/Loader"; import { removeAsterisksAndHashes } from "utils/strings"; import { ListingInfoSection } from "components/ui/Cards/ListingInfoSection"; import ListingPageHeader from "components/listing/PageHeader";