File tree Expand file tree Collapse file tree 3 files changed +24
-3
lines changed
packages/react-storage/src/components/StorageBrowser
Views/LocationsView/Controls Expand file tree Collapse file tree 3 files changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,19 @@ import { capitalize } from '@aws-amplify/ui';
55import {
66 DataTable ,
77 TABLE_DATA_BUTTON_CLASS ,
8+ TABLE_DATA_TEXT_CLASS_NAME ,
89 TABLE_HEADER_BUTTON_CLASS_NAME ,
910 TABLE_HEADER_CLASS_NAME ,
1011} from '../../../components/DataTable' ;
1112import { useControl } from '../../../context/controls' ;
1213import { useLocationsData } from '../../../context/actions' ;
1314import { LocationAccess } from '../../../context/types' ;
1415import { compareStrings } from '../../../context/controls/Table' ;
15- import { ButtonElement , IconElement } from '../../../context/elements' ;
16+ import {
17+ ButtonElement ,
18+ IconElement ,
19+ SpanElement ,
20+ } from '../../../context/elements' ;
1621
1722export type SortDirection = 'ascending' | 'descending' | 'none' ;
1823
@@ -113,8 +118,22 @@ const getLocationsData = ({
113118 </ ButtonElement >
114119 ) ,
115120 } ,
116- { key : `td-type-${ index } ` , children : location . type } ,
117- { key : `td-permission-${ index } ` , children : location . permission } ,
121+ {
122+ key : `td-type-${ index } ` ,
123+ children : (
124+ < SpanElement className = { TABLE_DATA_TEXT_CLASS_NAME } >
125+ { location . type }
126+ </ SpanElement >
127+ ) ,
128+ } ,
129+ {
130+ key : `td-permission-${ index } ` ,
131+ children : (
132+ < SpanElement className = { TABLE_DATA_TEXT_CLASS_NAME } >
133+ { location . permission }
134+ </ SpanElement >
135+ ) ,
136+ } ,
118137 ] ) ;
119138
120139 return { columns, rows } ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export const TABLE_HEADER_CLASS_NAME = `${TABLE_CLASS_NAME}__header`;
1616export const TABLE_HEADER_BUTTON_CLASS_NAME = `${ TABLE_CLASS_NAME } __header__button` ;
1717export const TABLE_ROW_CLASS_NAME = `${ TABLE_CLASS_NAME } __row` ;
1818export const TABLE_DATA_CLASS_NAME = `${ TABLE_CLASS_NAME } __data` ;
19+ export const TABLE_DATA_TEXT_CLASS_NAME = `${ TABLE_CLASS_NAME } __data__text` ;
1920export const TABLE_DATA_BUTTON_CLASS = `${ TABLE_CLASS_NAME } __data__button` ;
2021
2122export interface ColumnHeaderItemProps
Original file line number Diff line number Diff line change 44 ButtonElementProps ,
55 MessageVariant ,
66 PaginateVariant ,
7+ SpanElement ,
78 StorageBrowserElements ,
89 TableBodyElement ,
910 TableDataElement ,
You can’t perform that action at this time.
0 commit comments