Skip to content

Commit 7251ce3

Browse files
committed
added react-icons and replaced depreciated lucide icons with it in the top header
1 parent 1e81cf0 commit 7251ce3

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

package-lock.json

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"react": "19.1.1",
6565
"react-dom": "19.1.1",
6666
"react-helmet-async": "^2.0.5",
67+
"react-icons": "^5.5.0",
6768
"react-redux": "^9.2.0",
6869
"react-router-dom": "^7.9.3"
6970
}

src/components/TopHeader/TopHeader.jsx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import React, { useEffect, useState } from 'react';
2-
import { Facebook, Twitter, Instagram, Linkedin } from 'lucide-react';
2+
import {
3+
FaFacebookF,
4+
FaTwitter,
5+
FaInstagram,
6+
FaLinkedinIn,
7+
} from 'react-icons/fa';
38

49
export default function TopHeader() {
510
const messages = [
@@ -37,24 +42,24 @@ export default function TopHeader() {
3742
{/* Right Side Icons */}
3843
<div className="flex space-x-4 ml-4">
3944
<a href="#" aria-label="Facebook" className="hover:text-gray-300">
40-
<Facebook
45+
<FaFacebookF
4146
size={18}
4247
className="fill-current text-white hover:text-gray-300"
4348
stroke="none"
4449
/>
4550
</a>
4651
<a href="#" aria-label="Twitter" className="hover:text-gray-300">
47-
<Twitter
52+
<FaTwitter
4853
size={18}
4954
className="fill-current text-white hover:text-gray-300"
5055
stroke="none"
5156
/>
5257
</a>
5358
<a href="#" aria-label="Instagram" className="hover:text-gray-300">
54-
<Instagram size={18} />
59+
<FaInstagram size={18} />
5560
</a>
5661
<a href="#" aria-label="LinkedIn" className="hover:text-gray-300">
57-
<Linkedin
62+
<FaLinkedinIn
5863
size={18}
5964
className="fill-current text-white hover:text-gray-300"
6065
stroke="none"

0 commit comments

Comments
 (0)