refactor: more TS code

This commit is contained in:
Tristan Yang
2022-08-03 08:50:27 +08:00
parent bba42f2f45
commit 0254b50a04
21 changed files with 77 additions and 52 deletions
@@ -33,14 +33,14 @@ const Styled = styled.div`
}
`;
interface Props {
type Props = {
uploading: boolean;
progress: number;
thumbnail: string;
download: string;
content: string;
properties: { width: number; height: number };
}
};
const ImageMessage: FC<Props> = ({
uploading,