- {isShareLetterPreview ? (
-
- ) : (
-
-
-
- )}
-
+
{!isShareLetterPreview && (
@@ -53,6 +46,7 @@ const Header = ({
{likeCount}
{isWriter ? (
+ // TODO: 게시물 삭제
) : (
+
{
+ setIsOpenWarningModal(true);
+ }}
+ >
+
경고 횟수
+
+ {data.warningCount}회
+
+
+
{
logout();
}}
+ aria-label="로그아웃"
>
로그아웃
@@ -125,6 +155,7 @@ const MyPage = () => {
onClick={async () => {
setIsOpenModal(true);
}}
+ aria-label="탈퇴하기"
>
탈퇴하기
diff --git a/src/pages/Notifications/components/WarningModal.tsx b/src/pages/Notifications/components/WarningModal.tsx
index 4470eb3..3b6ea46 100644
--- a/src/pages/Notifications/components/WarningModal.tsx
+++ b/src/pages/Notifications/components/WarningModal.tsx
@@ -34,13 +34,7 @@ const WarningModal = ({ isOpen, reportContent, onClose }: WarningModalProps) =>
{`${divideContents[1]} 회`}
경고 규칙
-
- 1회 경고: 주의 안내
-
- 2회 경고: 7일 동안 서비스 이용 제한
-
- 3회 경고: 서비스 이용 불가능
-
+
3회 경고: 서비스 이용 불가능
diff --git a/src/pages/Notifications/index.tsx b/src/pages/Notifications/index.tsx
index a3c0cdc..257453e 100644
--- a/src/pages/Notifications/index.tsx
+++ b/src/pages/Notifications/index.tsx
@@ -7,10 +7,14 @@ import PageTitle from '@/components/PageTitle';
import NotificationItem from './components/NotificationItem';
import WarningModal from './components/WarningModal';
import SendingModal from './components/SendingModal';
+import useNotificationStore from '@/stores/notificationStore';
const NotificationsPage = () => {
const navigate = useNavigate();
+ const decrementNotReadCount = useNotificationStore((state) => state.decrementNotReadCount);
+ const setNotReadCount = useNotificationStore((state) => state.setNotReadCount);
+
const [noti, setNoti] = useState