ConversationView: Move attachments processing into redux

This commit is contained in:
Scott Nonnenberg 2022-12-07 17:26:59 -08:00 committed by GitHub
parent ff6750e4fd
commit 452e0b7b31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 544 additions and 763 deletions

View file

@ -6,7 +6,7 @@ import type { LocalizerType } from '../types/Util';
import { Toast } from './Toast';
export type ToastPropsType = {
limit: number;
limit: string;
units: string;
};
@ -23,8 +23,7 @@ export function ToastFileSize({
}: PropsType): JSX.Element {
return (
<Toast onClose={onClose}>
{i18n('fileSizeWarning')} {limit}
{units}
{i18n('icu:fileSizeWarning', { limit, units })}
</Toast>
);
}