Skip to content

Commit cb8ef67

Browse files
authored
fix: Apply string set for file upload size and count limit (#989)
[SBISSUE-15201](https://sendbird.atlassian.net/browse/SBISSUE-15201) ### ChangeLog Apply the string set `FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT` and `FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT`
1 parent 43cd83e commit cb8ef67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/GroupChannel/components/MessageInputWrapper/useHandleUploadFiles.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export const useHandleUploadFiles = (
4646
logger.info(`Channel|useHandleUploadFiles: Cannot upload files more than ${uikitMultipleFilesMessageLimit}`);
4747
openModal({
4848
modalProps: {
49-
titleText: `Up to ${uikitMultipleFilesMessageLimit} files can be attached.`,
49+
titleText: stringSet.FILE_UPLOAD_NOTIFICATION__COUNT_LIMIT.replace('%d', `${uikitUploadSizeLimit}`),
5050
hideFooter: true,
5151
},
5252
childElement: ({ closeModal }) => (
@@ -68,7 +68,7 @@ export const useHandleUploadFiles = (
6868
const ONE_MiB = 1024 * 1024;
6969
openModal({
7070
modalProps: {
71-
titleText: `The maximum size per file is ${Math.floor(uikitUploadSizeLimit / ONE_MiB)} MB.`,
71+
titleText: stringSet.FILE_UPLOAD_NOTIFICATION__SIZE_LIMIT.replace('%d', `${Math.floor(uikitUploadSizeLimit / ONE_MiB)}`),
7272
hideFooter: true,
7373
},
7474
childElement: ({ closeModal }) => (

0 commit comments

Comments
 (0)