aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-13 21:55:47 +0800
committercrupest <crupest@outlook.com>2021-02-13 21:55:47 +0800
commit2c3b2917c123708f39c1d5288b850a23f0e6042f (patch)
treee655a7d3b851ee3682db8895d13d2e688d180364 /FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
parent50dbdde46eed6f2ff4c9691eea4414c1712af8e5 (diff)
downloadtimeline-2c3b2917c123708f39c1d5288b850a23f0e6042f.tar.gz
timeline-2c3b2917c123708f39c1d5288b850a23f0e6042f.tar.bz2
timeline-2c3b2917c123708f39c1d5288b850a23f0e6042f.zip
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx')
-rw-r--r--FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
index 69954040..67871c48 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
@@ -1,5 +1,6 @@
import React from "react";
import { Spinner } from "react-bootstrap";
+import clsx from "clsx";
import { HttpNetworkError } from "@/http/common";
import { getHttpTimelineClient, HttpTimelinePostInfo } from "@/http/timeline";
@@ -38,7 +39,7 @@ const TextView: React.FC<TimelinePostContentViewProps> = (props) => {
return () => {
subscribe = false;
};
- }, [post]);
+ }, [post.timelineName, post.id]);
if (error != null) {
// TODO: i18n
@@ -69,7 +70,7 @@ const ImageView: React.FC<TimelinePostContentViewProps> = (props) => {
post.timelineName,
post.id
)}
- className={className}
+ className={clsx(className, "timeline-content-image")}
style={style}
/>
);