diff --git a/app/routes/help-center.tsx b/app/routes/help-center.tsx index 51d9f813..acc0277e 100644 --- a/app/routes/help-center.tsx +++ b/app/routes/help-center.tsx @@ -1,10 +1,8 @@ import type { MetaFunction } from "@remix-run/node"; -import { redirect } from "@remix-run/react"; +import { useNavigate } from "@remix-run/react"; import React, { useEffect, useRef, useState } from "react"; import { Button } from "~/components/ui/button"; -import Footer from "~/components/ui/footer"; -import Header from "~/components/ui/header"; export const meta: MetaFunction = () => { return [ @@ -75,6 +73,7 @@ export default function HelpCenter() { }>({}); const [showDropdown, setShowDropdown] = useState(false); const dropdownReference = useRef(null); + const navigate = useNavigate(); const handleInputChange = (event: React.ChangeEvent) => { setQuery(event.target.value); @@ -149,23 +148,20 @@ export default function HelpCenter() { }, []); return ( -
- {/* ======> import Header component <====== */} -
- -
-

+
+
+

Help Center

-

+

How can we help You?

-

+

Find advice and answers from our support team

{filteredTopics.length > 0 ? ( filteredTopics.map((topic, index) => (
handleDropdownClick(index)} @@ -195,7 +191,7 @@ export default function HelpCenter() {
)) ) : ( -
No topics found
+
No topics found
)}
)} @@ -203,7 +199,7 @@ export default function HelpCenter() {
-

+

Browse by topics

@@ -211,14 +207,14 @@ export default function HelpCenter() { filteredTopics.map((topic, index) => (
handleTopicToggle(index)} onKeyDown={(event) => handleKeyPressTopicToggle(event, index)} >
-

+

{topic.topic}

-
+

Frequently Asked Questions @@ -243,10 +239,10 @@ export default function HelpCenter() { We couldn’t answer your question?

@@ -256,7 +252,7 @@ export default function HelpCenter() { {questtions.map((ques, ind) => (
handleQuestionToggle(ind)} @@ -279,24 +275,21 @@ export default function HelpCenter() {
-

+

Didn’t find an answer?

-

+

Contact us for more inquires and information about our services.

- - {/* ======> import Footer component <====== */} -
); }