From 9b310db0bbe252523ec3c7b5d0e22883dba6e37f Mon Sep 17 00:00:00 2001 From: Jordan Van Ness Date: Fri, 6 Sep 2024 12:18:46 -0700 Subject: [PATCH] fix: update FileUploader docs to use FileUploader in examples (#5762) * fix: updating FileUploader docs to use FileUploader in examples * Update docs/src/pages/[platform]/theming/icons/IconSwitcher.tsx Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com> --------- Co-authored-by: Scott Rees <6165315+reesscot@users.noreply.github.com> --- .../storage/fileuploader/examples/ComponentOverrides.tsx | 4 ++-- .../storage/fileuploader/examples/Default.tsx | 4 ++-- .../storage/fileuploader/examples/DisplayText.tsx | 4 ++-- .../storage/fileuploader/examples/Event.tsx | 4 ++-- .../storage/fileuploader/examples/FileTypes.tsx | 4 ++-- .../storage/fileuploader/examples/Handle.tsx | 4 ++-- .../storage/fileuploader/examples/Hash.tsx | 4 ++-- .../storage/fileuploader/examples/Metadata.tsx | 4 ++-- .../storage/fileuploader/examples/PathProp.tsx | 4 ++-- .../storage/fileuploader/examples/Resumable.tsx | 4 ++-- .../storage/fileuploader/examples/Theme.tsx | 4 ++-- .../storage/fileuploader/examples/UploadActions.tsx | 4 ++-- .../storage/fileuploader/examples/i18n.tsx | 4 ++-- docs/src/pages/[platform]/theming/icons/IconSwitcher.tsx | 4 ++-- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/docs/src/pages/[platform]/connected-components/storage/fileuploader/examples/ComponentOverrides.tsx b/docs/src/pages/[platform]/connected-components/storage/fileuploader/examples/ComponentOverrides.tsx index 673aab47708..599462580e7 100644 --- a/docs/src/pages/[platform]/connected-components/storage/fileuploader/examples/ComponentOverrides.tsx +++ b/docs/src/pages/[platform]/connected-components/storage/fileuploader/examples/ComponentOverrides.tsx @@ -9,11 +9,11 @@ import { Loader, Icon, } from '@aws-amplify/ui-react'; -import { StorageManager } from '@aws-amplify/ui-react-storage'; +import { FileUploader } from '@aws-amplify/ui-react-storage'; export const App = () => { return ( - { return ( - { return ( - { const [files, setFiles] = React.useState({}); return ( <> - `private/${identityId}/`} diff --git a/docs/src/pages/[platform]/connected-components/storage/fileuploader/examples/FileTypes.tsx b/docs/src/pages/[platform]/connected-components/storage/fileuploader/examples/FileTypes.tsx index 3f1b8e8c085..48b9dfa863c 100644 --- a/docs/src/pages/[platform]/connected-components/storage/fileuploader/examples/FileTypes.tsx +++ b/docs/src/pages/[platform]/connected-components/storage/fileuploader/examples/FileTypes.tsx @@ -1,8 +1,8 @@ -import { StorageManager } from '@aws-amplify/ui-react-storage'; +import { FileUploader } from '@aws-amplify/ui-react-storage'; export const App = () => { return ( - { const ref = React.useRef(null); return ( <> - { const fileExtension = file.name.split('.').pop(); @@ -17,7 +17,7 @@ const processFile = async ({ file }) => { export const App = () => { return ( - { return { @@ -12,7 +12,7 @@ const processFile = ({ file, key }) => { export function App() { return ( - { return ( - { return ( - { return ( - { return ( - { En Es - - + );