Skip to content

Commit

Permalink
Refactor FAQ component and update RentNavbar link; add TypeScript pat…
Browse files Browse the repository at this point in the history
…h mapping configuration
  • Loading branch information
namansinghrana committed Nov 7, 2024
1 parent 9d1f0f9 commit 2e4030d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/Header-section/RentNavbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const RentNavbar = () => {
CONTACT
</div>
</a>
<a href="/" aria-current="page">
<a href="/#FAQ" aria-current="page">
<div
className="text-textWhite"
// onClick={() => {
Expand Down
6 changes: 4 additions & 2 deletions src/components/faq/FAQ.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const faqData = [
}
]

export default function FAQ() {
const FAQ = () => {
return (
<section className="w-full py-16 md:py-24 lg:py-32 bg-secondary/20">
<div className="container mx-auto px-4 md:px-6 max-w-4xl">
Expand All @@ -71,4 +71,6 @@ export default function FAQ() {
</div>
</section>
)
}
};

export default FAQ;
7 changes: 7 additions & 0 deletions tsconfig.paths.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}
}

0 comments on commit 2e4030d

Please sign in to comment.