From 77f405c395f39f9bfeb130a8646ace63bfadde4d Mon Sep 17 00:00:00 2001 From: Sanidhya Kumar Verma Date: Sat, 13 Jan 2024 12:05:16 +0000 Subject: [PATCH] added tailwind merge util to prevent duplicate merging of classnames --- src/components/Feedbacks.jsx | 5 +++-- src/components/Footer.jsx | 6 +++++- src/components/Hero.jsx | 10 +++++++--- src/components/Navbar.jsx | 27 +++++++++++++++++---------- src/components/Works.jsx | 3 ++- src/hoc/SectionWrapper.jsx | 3 ++- 6 files changed, 36 insertions(+), 18 deletions(-) diff --git a/src/components/Feedbacks.jsx b/src/components/Feedbacks.jsx index 911985f..533417d 100644 --- a/src/components/Feedbacks.jsx +++ b/src/components/Feedbacks.jsx @@ -4,6 +4,7 @@ import { motion } from "framer-motion"; import { styles } from "../styles"; import { SectionWrapper } from "../hoc"; import { fadeIn, textVariant } from "../utils/motion"; +import { cn } from "../utils/lib"; import { testimonials } from "../constants"; // Feedback Card @@ -53,7 +54,7 @@ const Feedbacks = () => { return (
{/* Title */} @@ -63,7 +64,7 @@ const Feedbacks = () => {
{/* Feedback Card */} -
+
{testimonials.map((testimonial, i) => ( ))} diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 52b2955..6798ce0 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -3,12 +3,16 @@ import { Link } from "react-router-dom"; import { styles } from "../styles"; import { socials } from "../constants"; +import { cn } from "../utils/lib"; // Footer const Footer = () => { return (