We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05434e commit 653b2c6Copy full SHA for 653b2c6
1 file changed
client/src/components/FileUploadWarning/index.tsx
@@ -1,5 +1,7 @@
1
import { Button } from '../Button';
2
3
+export const ERROR_UPLOAD_MESSAGE = 'There was an error uploading the file';
4
+
5
interface FileUploadWarningProps {
6
errorMessage: string;
7
reset: () => void;
@@ -15,7 +17,7 @@ export function FileUploadWarning({
15
17
<ErrorIcon />
16
18
</div>
19
<h2 className="mb-2">Error</h2>
- <p className="mb-2">There was an error uploading the file</p>
20
+ <p className="mb-2">{ERROR_UPLOAD_MESSAGE}</p>
21
<p className="mb-10 text-center">{errorMessage}</p>
22
23
<Button onClick={reset}>Try again</Button>
0 commit comments