diff --git a/src/components/Error/Error.jsx b/src/components/Error/Error.jsx index 2aab25b..abcc9c4 100644 --- a/src/components/Error/Error.jsx +++ b/src/components/Error/Error.jsx @@ -38,7 +38,7 @@ const Error = ({ search, type }) => { }} > -
+
{filteredErrorByType.length === 0 ? (

diff --git a/src/components/Error/ErrorCard.jsx b/src/components/Error/ErrorCard.jsx index c630885..bf68235 100644 --- a/src/components/Error/ErrorCard.jsx +++ b/src/components/Error/ErrorCard.jsx @@ -18,11 +18,12 @@ function ErrorCard({ error }) { return (

{error.title}

- - +
+ +
@@ -44,7 +45,7 @@ function ErrorCard({ error }) {
-
- {width > 768 ? ( +
+ setOpen(!open)} + className={"text-xl !cursor-pointer"} + /> +
+ { + open && +
+ setOpen(!open)} className="ml-auto mt-5 text-2xl cursor-pointer" />
    {errorType.map((item, i) => (
  • { setSelectedTag(item); setType(item); + setOpen(false) }} > + {selectedTag && selectedTag == item && } {item}
  • ))}
- ) : ( -
- - - {!open && ( - -
    - {errorType.map((item, i) => ( -
  • { - setSelectedTag(item); - setType(item); - setOpen(!open); - }} - > - {item} -
  • - ))} -
-
- )} -
-
- )} -
+
+ }
); }