From 6791c26e28b5113796fdf34e29f7affe12ee556e Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sun, 14 Feb 2021 17:14:52 +0800
Subject: feat: Add skeleton for text post.

---
 FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx')

diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
index 67871c48..35d091af 100644
--- a/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
+++ b/FrontEnd/src/app/views/timeline-common/TimelinePostContentView.tsx
@@ -1,5 +1,4 @@
 import React from "react";
-import { Spinner } from "react-bootstrap";
 import clsx from "clsx";
 
 import { HttpNetworkError } from "@/http/common";
@@ -7,6 +6,8 @@ import { getHttpTimelineClient, HttpTimelinePostInfo } from "@/http/timeline";
 
 import { useUser } from "@/services/user";
 
+import Skeleton from "../common/Skeleton";
+
 const TextView: React.FC<TimelinePostContentViewProps> = (props) => {
   const { post, className, style } = props;
 
@@ -49,7 +50,7 @@ const TextView: React.FC<TimelinePostContentViewProps> = (props) => {
       </div>
     );
   } else if (text == null) {
-    return <Spinner variant="primary" animation="grow" />;
+    return <Skeleton />;
   } else {
     return (
       <div className={className} style={style}>
-- 
cgit v1.2.3

