-
+
+
+ Mark
+
+ {RelativeElement}
+
+ as read
+
+ )}
+ onClick={() => {
+ if (confirmMark) {
+ clearTimeout(timerRef.current)
+ handleMarkAllAsRead()
+ setConfirmMark(false)
+ } else {
+ setConfirmMark(true)
+ }
+ }}
+ className="size-7 text-base"
+ >
+
+
+ {confirmMark ? (
+
Mark
{RelativeElement}
-
- as read
-
+ {" "}
+ as read?
+
+ ) : (
+ RelativeElement
)}
- onClick={() => {
- if (confirmMark) {
- clearTimeout(timerRef.current)
- handleMarkAllAsRead()
- setConfirmMark(false)
- } else {
- setConfirmMark(true)
- }
- }}
- className="size-7 text-base"
- >
-
-
-
- {confirmMark ? (
-
- Mark
-
- {RelativeElement}
- {" "}
- as read?
-
- ) : (
- RelativeElement
- )}
+
)
}
@@ -150,20 +170,21 @@ const SocialMediaDateItem = ({
}) => {
const { startOfDay, endOfDay, dateObj } = useParseDate(date)
- const { isSticky, itemRef } = useSticky()
- const RelativeElement =