Skip to content

Commit ac198f7

Browse files
committed
chore: add informational alert that storage manager has been renamed file uploader
1 parent 29cfacc commit ac198f7

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { Alert } from '@aws-amplify/ui-react';
2+
3+
export const FileUploaderAlert = () => {
4+
return (
5+
<Alert variation="info" role="none">
6+
StorageManager has been renamed to FileUploader. The FileUploader export
7+
is available since version 3.3.0, previous versions must still use
8+
StorageManager.
9+
</Alert>
10+
);
11+
};

docs/src/pages/[platform]/connected-components/storage/fileuploader/react.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import AppDirectoryAlert from '@/components/AppDirectoryAlert';
55
import { ComponentStyleDisplay } from '@/components/ComponentStyleDisplay';
66
import ReactPropsTable from '@/components/propsTable/ReactPropsTable';
77
import { Example, ExampleCode } from '@/components/Example';
8+
import { FileUploaderAlert } from '@/components/FileUploaderAlert';
89
import { Fragment } from '@/components/Fragment';
910
import { InstallScripts } from '@/components/InstallScripts';
1011
import { FILE_UPLOADER, FILE_PICKER, DROPZONE_PROPS, DISPLAY_TEXT } from './props';
@@ -34,6 +35,8 @@ import {
3435

3536
<AppDirectoryAlert />
3637

38+
<FileUploaderAlert />
39+
3740
To use the FileUploader component import it into your React application with the included styles.
3841

3942
<InstallScripts component="storage" />

0 commit comments

Comments
 (0)