We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 90e0e7f + d54f101 commit be38654Copy full SHA for be38654
1 file changed
โsrc/pages/Setting/ManageComment/ManageComment.tsxโ
@@ -12,11 +12,12 @@ import {
12
getFormattedDateByString,
13
} from '@utils/getFormattedDate'
14
import SmallToast from '@components/SmallToast'
15
+import Loading from '@components/Loading'
16
17
function ManageComment() {
18
const navigate = useNavigate()
19
- const { data, isSuccess } = useQuery(
20
+ const { data, isLoading, isSuccess } = useQuery(
21
['getMyReply'],
22
() => getMyReply(0, 10),
23
{
@@ -95,6 +96,11 @@ function ManageComment() {
95
96
}
97
return 'w-full'
98
99
+
100
+ if (isLoading) {
101
+ return <Loading />
102
+ }
103
104
return (
105
<div className="relative h-full px-6">
106
{isToast && (
0 commit comments