Skip to content

Commit b1a45b9

Browse files
fix(docs): use correct listLocation attribute names in Storage Browser auth example (#6264)
1 parent 8ff81b1 commit b1a45b9

File tree

1 file changed

+5
-5
lines changed
  • docs/src/pages/[platform]/connected-components/storage/storage-browser

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -195,20 +195,20 @@ export const { StorageBrowser } = createStorageBrowser({
195195
listLocations: async (input = {}) => {
196196
const { nextToken, pageSize } = input;
197197
return {
198-
locations: [
198+
items: [
199199
{
200-
bucketName: '[bucket name]',
200+
bucket: '[bucket name]',
201201
prefix: '', // empty path means bucket root
202202
id: 'XXXXXXX', // unique identifier
203203
type: 'BUCKET',
204-
permission: ['delete', 'get', 'list', 'write'],
204+
permissions: ['delete', 'get', 'list', 'write'],
205205
},
206206
{
207-
bucketName: '[bucket name]',
207+
bucket: '[bucket name]',
208208
prefix: 'some/path',
209209
id: 'XXXXXXX', // unique identifier
210210
type: 'PREFIX',
211-
permission: ['delete', 'get', 'list', 'write'],
211+
permissions: ['delete', 'get', 'list', 'write'],
212212
}
213213
]
214214
}

0 commit comments

Comments
 (0)