Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change supported file formats message in file-field component #175

Merged
merged 1 commit into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/shared/components/file-field.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const FileField: FC<Props> = (props) => {
) : files.length === 0 ? (
<Flex align="center">
{!isReadOnly && (
<Text color="gray.500" align={'center'}>
<Text color="gray.500" align={'center'} whiteSpace={'pre-line'}>
{t('files.uploadFiles')}
</Text>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
},
"files": {
"attachments": "Attachments",
"uploadFiles": "Drag 'n' drop files here, or click to select files (Supported formats: jpg, jpeg, png, gif, pdf)",
"uploadFiles": "Drag 'n' drop files here, or click to select files\n(supported formats: jpg, jpeg, png, gif, pdf)",
"previewFile": "Preview file",
"deleteFile": "Delete file"
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/i18n/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
},
"files": {
"attachments": "Adjuntos",
"uploadFiles": "Arrastre y suelte los archivos aquí, o haga clic para seleccionarlos (Formatos soportados: jpg, jpeg, png, gif, pdf)",
"uploadFiles": "Arrastre y suelte los archivos aquí, o haga clic para seleccionarlos\n(formatos soportados: jpg, jpeg, png, gif, pdf)",
"previewFile": "Previsualizar archivo",
"deleteFile": "Eliminar archivo"
}
Expand Down