Skip to content

Commit

Permalink
run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Mar 29, 2023
1 parent 5cfbb6b commit bbba0e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
4 changes: 2 additions & 2 deletions docs/uploader/aws-s3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ Otherwise, you can manually apply it through the OAuth playground:

### Use with your own server

The recommended approach is to integrate `@uppy/aws-s3` with your own
server. You will need to do the following things:
The recommended approach is to integrate `@uppy/aws-s3` with your own server.
You will need to do the following things:

1. Setup a bucket
2. Create endpoints in your server. You can create them as edge functions (such
Expand Down
30 changes: 18 additions & 12 deletions src/pages/examples.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import React, { memo, useCallback, useEffect, useReducer, useState } from 'react';
import React, {
memo,
useCallback,
useEffect,
useReducer,
useState,
} from 'react';

import Layout from '@theme/Layout';
import Admonition from '@theme/Admonition';
Expand All @@ -17,7 +23,7 @@ import Audio from '@uppy/audio';
import ScreenCapture from '@uppy/screen-capture';
import ImageEditor from '@uppy/image-editor';
import Tus from '@uppy/tus';
import GoldenRetriever from '@uppy/golden-retriever'
import GoldenRetriever from '@uppy/golden-retriever';

import locales from '../locales.js';

Expand Down Expand Up @@ -196,18 +202,18 @@ const Uppy = memo(({ state, locale }) => {
.use(Url, { companionUrl })
.use(OneDrive, { companionUrl })
.use(Unsplash, { companionUrl })
.use(Box, { companionUrl })
.use(Box, { companionUrl });

if (state.enableGoldenRetriever) {
ret.use(GoldenRetriever)
}
return ret
}, [state, locale])
if (state.enableGoldenRetriever) {
ret.use(GoldenRetriever);
}

return ret;
}, [state, locale]);

const [uppy, setUppy] = useState(createUppy)
const [uppy, setUppy] = useState(createUppy);

useEffect(() => setUppy(createUppy()), [createUppy])
useEffect(() => setUppy(createUppy()), [createUppy]);

return (
<div className={styles['uppy-wrapper']}>
Expand All @@ -226,7 +232,7 @@ const Uppy = memo(({ state, locale }) => {
/>
</div>
);
})
});

// const companionUrl = 'https://companion.uppy.io';
const companionUrl = 'http://localhost:3020';
Expand Down

0 comments on commit bbba0e5

Please sign in to comment.