From 2e4030d8ee4b4edb9638e5d37872a77b99d37915 Mon Sep 17 00:00:00 2001 From: Naman Singh Rana <101310228+namansinghrana@users.noreply.github.com> Date: Thu, 7 Nov 2024 07:51:30 +0530 Subject: [PATCH] Refactor FAQ component and update RentNavbar link; add TypeScript path mapping configuration --- src/components/Header-section/RentNavbar.jsx | 2 +- src/components/faq/FAQ.jsx | 6 ++++-- tsconfig.paths.json | 7 +++++++ 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 tsconfig.paths.json diff --git a/src/components/Header-section/RentNavbar.jsx b/src/components/Header-section/RentNavbar.jsx index 1f4a725e..57de9849 100644 --- a/src/components/Header-section/RentNavbar.jsx +++ b/src/components/Header-section/RentNavbar.jsx @@ -89,7 +89,7 @@ const RentNavbar = () => { CONTACT - +
{ diff --git a/src/components/faq/FAQ.jsx b/src/components/faq/FAQ.jsx index 93ddf27a..2b7fa2e3 100644 --- a/src/components/faq/FAQ.jsx +++ b/src/components/faq/FAQ.jsx @@ -49,7 +49,7 @@ const faqData = [ } ] -export default function FAQ() { +const FAQ = () => { return (
@@ -71,4 +71,6 @@ export default function FAQ() {
) -} \ No newline at end of file +}; + +export default FAQ; \ No newline at end of file diff --git a/tsconfig.paths.json b/tsconfig.paths.json new file mode 100644 index 00000000..b8d6842d --- /dev/null +++ b/tsconfig.paths.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./src/*"] + } + } +}