aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx37
1 files changed, 0 insertions, 37 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
index bff4547e..9b76635e 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePageTemplate.tsx
@@ -1,7 +1,6 @@
import React from "react";
import { UiLogicError } from "@/common";
-import { pushAlert } from "@/services/alert";
import { useUser } from "@/services/user";
import {
TimelinePostInfo,
@@ -98,42 +97,6 @@ export default function TimelinePageTemplate<TManageItem>(
}
: undefined,
onMember: () => setDialog("member"),
- onBookmark:
- user != null
- ? () => {
- service
- .setBookmark(timeline.name, !timeline.isBookmark)
- .catch(() => {
- pushAlert({
- message: {
- type: "i18n",
- key: timeline.isBookmark
- ? "timeline.removeBookmarkFail"
- : "timeline.addBookmarkFail",
- },
- type: "danger",
- });
- });
- }
- : undefined,
- onHighlight:
- user != null && user.hasHighlightTimelineAdministrationPermission
- ? () => {
- service
- .setHighlight(timeline.name, !timeline.isHighlight)
- .catch(() => {
- pushAlert({
- message: {
- type: "i18n",
- key: timeline.isHighlight
- ? "timeline.removeHighlightFail"
- : "timeline.addHighlightFail",
- },
- type: "danger",
- });
- });
- }
- : undefined,
};
const posts = ((): TimelinePostInfo[] | "forbid" | undefined => {