aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/pages/timeline
diff options
context:
space:
mode:
Diffstat (limited to 'FrontEnd/src/pages/timeline')
-rw-r--r--FrontEnd/src/pages/timeline/Timeline.tsx2
-rw-r--r--FrontEnd/src/pages/timeline/TimelineMember.tsx3
-rw-r--r--FrontEnd/src/pages/timeline/edit/TimelinePostCreateView.tsx4
-rw-r--r--FrontEnd/src/pages/timeline/index.tsx2
4 files changed, 4 insertions, 7 deletions
diff --git a/FrontEnd/src/pages/timeline/Timeline.tsx b/FrontEnd/src/pages/timeline/Timeline.tsx
index e2ab5c71..69dfecea 100644
--- a/FrontEnd/src/pages/timeline/Timeline.tsx
+++ b/FrontEnd/src/pages/timeline/Timeline.tsx
@@ -115,7 +115,7 @@ export function Timeline(props: TimelineProps) {
return () => {
subscription.unsubscribe();
};
- }, [timelineOwner, timelineName]);
+ }, [timelineOwner, timelineName, reloadPosts]);
useScrollToBottom(() => {
console.log(`Load page ${currentPage + 1}.`);
diff --git a/FrontEnd/src/pages/timeline/TimelineMember.tsx b/FrontEnd/src/pages/timeline/TimelineMember.tsx
index 0812016f..4fa9cf72 100644
--- a/FrontEnd/src/pages/timeline/TimelineMember.tsx
+++ b/FrontEnd/src/pages/timeline/TimelineMember.tsx
@@ -1,12 +1,11 @@
import { useState } from "react";
import { useTranslation } from "react-i18next";
-import { convertI18nText, I18nText } from "~src/common";
-
import { HttpUser } from "~src/http/user";
import { getHttpSearchClient } from "~src/http/search";
import { getHttpTimelineClient, HttpTimelineInfo } from "~src/http/timeline";
+import { convertI18nText, I18nText } from "~src/components/common";
import SearchInput from "~src/components/SearchInput";
import UserAvatar from "~src/components/user/UserAvatar";
import { IconButton } from "~src/components/button";
diff --git a/FrontEnd/src/pages/timeline/edit/TimelinePostCreateView.tsx b/FrontEnd/src/pages/timeline/edit/TimelinePostCreateView.tsx
index c0a80ad0..fe04bfa2 100644
--- a/FrontEnd/src/pages/timeline/edit/TimelinePostCreateView.tsx
+++ b/FrontEnd/src/pages/timeline/edit/TimelinePostCreateView.tsx
@@ -1,8 +1,6 @@
import { useState } from "react";
import classNames from "classnames";
-import { UiLogicError } from "~src/common";
-
import {
getHttpTimelineClient,
HttpTimelineInfo,
@@ -12,7 +10,7 @@ import {
import base64 from "~src/utilities/base64";
-import { useC } from "~/src/components/common";
+import { UiLogicError, useC } from "~/src/components/common";
import { pushAlert } from "~src/components/alert";
import { IconButton, LoadingButton } from "~src/components/button";
import PopupMenu from "~src/components/menu/PopupMenu";
diff --git a/FrontEnd/src/pages/timeline/index.tsx b/FrontEnd/src/pages/timeline/index.tsx
index 6cd1ded0..ee792d93 100644
--- a/FrontEnd/src/pages/timeline/index.tsx
+++ b/FrontEnd/src/pages/timeline/index.tsx
@@ -1,6 +1,6 @@
import { useParams } from "react-router-dom";
-import { UiLogicError } from "~src/common";
+import { UiLogicError } from "~src/components/common";
import Timeline from "./Timeline";