refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-14 22:22:05 +08:00
parent c2797a132c
commit 65049677e4
12 changed files with 54 additions and 33 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ interface IProps {
id: number;
}
const useUploadFile = (props: IProps) => {
const { context, id } = props;
const { context, id } = props ? props : { context: "channel", id: 0 };
const dispatch = useAppDispatch();
const { stageFiles, replying } = useAppSelector((store) => {
return {