From 705dcf5c80af4368bfe7ac17b7156455e5298be6 Mon Sep 17 00:00:00 2001 From: Wallewdev Date: Mon, 22 Jul 2024 12:49:21 +0100 Subject: [PATCH] feature: fixing colors using global css --- app/routes/help-center.tsx | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/app/routes/help-center.tsx b/app/routes/help-center.tsx index 7befcb59..acc0277e 100644 --- a/app/routes/help-center.tsx +++ b/app/routes/help-center.tsx @@ -1,5 +1,5 @@ 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"; @@ -73,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); @@ -148,19 +149,19 @@ export default function HelpCenter() { return (
-
-

+
+

Help Center

-

+

How can we help You?

-

+

Find advice and answers from our support team

{filteredTopics.length > 0 ? ( filteredTopics.map((topic, index) => (
handleDropdownClick(index)} @@ -190,7 +191,7 @@ export default function HelpCenter() {
)) ) : ( -
No topics found
+
No topics found
)}
)} @@ -206,14 +207,14 @@ export default function HelpCenter() { filteredTopics.map((topic, index) => (
handleTopicToggle(index)} onKeyDown={(event) => handleKeyPressTopicToggle(event, index)} >
-

+

{topic.topic}

-
+

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

@@ -251,7 +252,7 @@ export default function HelpCenter() { {questtions.map((ques, ind) => (
handleQuestionToggle(ind)} @@ -277,13 +278,13 @@ export default function HelpCenter() {

Didn’t find an answer?

-

+

Contact us for more inquires and information about our services.