Skip to content

Commit

Permalink
feat: [M3-8305] - Add 'Action' Table Header for Actions Column
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-akamai committed Aug 19, 2024
1 parent 986f4f5 commit 571a64e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,18 @@ export const AccessKeyTable = (props: AccessKeyTableProps) => {
Regions/S3 Hostnames
</StyledLabelCell>
)}
{/* empty cell for kebab menu */}
<TableCell />
<TableCell
sx={{
...(isObjMultiClusterEnabled && {
'&&:last-child': {
paddingRight: '15px',
},
}),
}}
data-qa-header-key
>
Actions
</TableCell>
</TableRow>
</TableHead>
<TableBody>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import {
ObjectStorageKey,
ObjectStorageKeyRegions,
} from '@linode/api-v4/lib/object-storage';
import { styled } from '@mui/material/styles';
import React from 'react';

Expand All @@ -13,10 +9,15 @@ import { useAccountManagement } from 'src/hooks/useAccountManagement';
import { useFlags } from 'src/hooks/useFlags';
import { isFeatureEnabledV2 } from 'src/utilities/accountCapabilities';

import { OpenAccessDrawer } from '../types';
import { AccessKeyActionMenu } from './AccessKeyActionMenu';
import { HostNameTableCell } from './HostNameTableCell';

import type { OpenAccessDrawer } from '../types';
import type {
ObjectStorageKey,
ObjectStorageKeyRegions,
} from '@linode/api-v4/lib/object-storage';

type Props = {
openDrawer: OpenAccessDrawer;
openRevokeDialog: (storageKeyData: ObjectStorageKey) => void;
Expand Down Expand Up @@ -62,7 +63,15 @@ export const AccessKeyTableRow = ({
/>
)}

<TableCell>
<TableCell
sx={{
...(isObjMultiClusterEnabled && {
'&&:last-child': {
paddingRight: '15px',
},
}),
}}
>
<AccessKeyActionMenu
label={storageKeyData.label}
objectStorageKey={storageKeyData}
Expand Down

0 comments on commit 571a64e

Please sign in to comment.