Skip to content

Commit

Permalink
🚨 lint error solved
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanptm committed Oct 10, 2024
1 parent b962eac commit 4c8fc97
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/components/button/NotificationButtonDoctor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const NotificationButtonDoctor = forwardRef<HTMLButtonElement>((props, ref) => {

const handleClearSingleNotification = useCallback((notificationId: string) => {
clearNotification(notificationId);
}, [notifications, clearNotification]);
}, [ clearNotification]);

const handleClearAllNotifications = useCallback(() => {
if (!notifications || notifications.length === 0) return;
Expand Down
2 changes: 1 addition & 1 deletion client/components/button/NotificationButtonPatient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const NotificationButtonPatient = () => {

const handleClearSingleNotification = useCallback((notificationId: string) => {
clearNotification(notificationId);
},[notifications, clearAllNotifications]);
},[ clearAllNotifications]);

const handleClearAllNotifications = useCallback(() => {
if (!notifications || notifications.length === 0) return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { memo } from "react";
import Link from "next/link";
import { ButtonV2 } from "@/components/button/ButtonV2";

const AyurvedaSection = memo(() => (
const AyurvedaSection = () => (
<div className="w-full max-w-6xl mx-auto bg-primary/5 rounded-lg p-8 md:p-12 my-20">
<h2 className="text-3xl md:text-4xl font-bold mb-6 text-center">The Healing Power of Ayurveda</h2>
<div className="space-y-6 text-base md:text-lg">
Expand Down Expand Up @@ -30,6 +30,6 @@ const AyurvedaSection = memo(() => (
</ButtonV2>
</div>
</div>
));
);

export default AyurvedaSection;
export default memo(AyurvedaSection);

0 comments on commit 4c8fc97

Please sign in to comment.