Skip to content

Commit

Permalink
Replace labelIconFile with labelIconObject.
Browse files Browse the repository at this point in the history
  • Loading branch information
avinashbot committed Feb 5, 2025
1 parent af79466 commit 9c34937
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14008,12 +14008,12 @@ The function will be called when a user clicks on the trigger button.",
"type": "(itemsType: string) => string",
},
{
"name": "labelIconFile",
"name": "labelIconFolder",
"optional": true,
"type": "string",
},
{
"name": "labelIconFolder",
"name": "labelIconObject",
"optional": true,
"type": "string",
},
Expand Down
2 changes: 1 addition & 1 deletion src/s3-resource-selector/__tests__/fixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export const i18nStrings: S3ResourceSelectorProps.I18nStrings = {
labelModalDismiss: 'Dismiss the modal',
labelBreadcrumbs: 'S3 navigation',
labelIconFolder: 'Folder',
labelIconFile: 'File',
labelIconObject: 'File',
};

export const buckets: ReadonlyArray<S3ResourceSelectorProps.Bucket> = [
Expand Down
2 changes: 1 addition & 1 deletion src/s3-resource-selector/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export namespace S3ResourceSelectorProps {
labelBreadcrumbs?: string;
labelExpandBreadcrumbs?: string;
labelClearFilter?: string;
labelIconFile?: string;
labelIconObject?: string;
labelIconFolder?: string;
}

Expand Down
2 changes: 1 addition & 1 deletion src/s3-resource-selector/s3-modal/objects-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function ObjectsTable({
const isClickable = item.IsFolder || includes(selectableItemsTypes, 'versions');
const iconProps: IconProps = item.IsFolder
? { name: 'folder', ariaLabel: i18nStrings?.labelIconFolder }
: { name: 'file', ariaLabel: i18nStrings?.labelIconFile };
: { name: 'file', ariaLabel: i18nStrings?.labelIconObject };
return (
<>
<InternalIcon {...iconProps} />{' '}
Expand Down

0 comments on commit 9c34937

Please sign in to comment.