From a947c9d5ea19b64978fcfb85b25b1d33f9667d60 Mon Sep 17 00:00:00 2001 From: thomasgross Date: Wed, 27 Nov 2024 14:37:53 +0100 Subject: [PATCH 1/2] feat: migrate Accordion component to shared directory --- components/{ => shared}/accordion/Accordion.tsx | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename components/{ => shared}/accordion/Accordion.tsx (100%) diff --git a/components/accordion/Accordion.tsx b/components/shared/accordion/Accordion.tsx similarity index 100% rename from components/accordion/Accordion.tsx rename to components/shared/accordion/Accordion.tsx From a0d0d7bbff794582b646d811051065f72f9ace40 Mon Sep 17 00:00:00 2001 From: thomasgross Date: Wed, 27 Nov 2024 14:46:42 +0100 Subject: [PATCH 2/2] refactor: move Accordion component imports to relative path in SearchFiltersMobile --- .../shared/searchFilters/SearchFiltersMobile.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/components/shared/searchFilters/SearchFiltersMobile.tsx b/components/shared/searchFilters/SearchFiltersMobile.tsx index d157a255..1ae52fe2 100644 --- a/components/shared/searchFilters/SearchFiltersMobile.tsx +++ b/components/shared/searchFilters/SearchFiltersMobile.tsx @@ -1,12 +1,6 @@ import { useRouter, useSearchParams } from "next/navigation" import React, { useState } from "react" -import { - Accordion, - AccordionContent, - AccordionItem, - AccordionTrigger, -} from "@/components/accordion/Accordion" import BadgeButton from "@/components/shared/badge/BadgeButton" import Icon from "@/components/shared/icon/Icon" import { @@ -25,6 +19,12 @@ import { import { SearchFacetFragment } from "@/lib/graphql/generated/fbi/graphql" import { TFilters } from "@/lib/machines/search/types" +import { + Accordion, + AccordionContent, + AccordionItem, + AccordionTrigger, +} from "../accordion/Accordion" import { Button } from "../button/Button" type SearchFiltersMobileProps = {