Skip to content

Commit 653b2c6

Browse files
committed
variable
1 parent a05434e commit 653b2c6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • client/src/components/FileUploadWarning

client/src/components/FileUploadWarning/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { Button } from '../Button';
22

3+
export const ERROR_UPLOAD_MESSAGE = 'There was an error uploading the file';
4+
35
interface FileUploadWarningProps {
46
errorMessage: string;
57
reset: () => void;
@@ -15,7 +17,7 @@ export function FileUploadWarning({
1517
<ErrorIcon />
1618
</div>
1719
<h2 className="mb-2">Error</h2>
18-
<p className="mb-2">There was an error uploading the file</p>
20+
<p className="mb-2">{ERROR_UPLOAD_MESSAGE}</p>
1921
<p className="mb-10 text-center">{errorMessage}</p>
2022

2123
<Button onClick={reset}>Try again</Button>

0 commit comments

Comments
 (0)