refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-08 19:13:49 +08:00
parent 678b8515ca
commit 9f1b115c73
55 changed files with 421 additions and 338 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ interface Props {
context: "user" | "channel";
to: number;
created_at: number;
from_uid?: number;
from_uid: number;
content: string;
download: string;
thumbnail: string;
@@ -41,7 +41,7 @@ const FileMessage: FC<Props> = ({
context,
to,
created_at,
from_uid = null,
from_uid,
content = "",
download = "",
thumbnail = "",