+
Root user Access keys details
+
{accessKeys && accessKeys.length > 0 && (
}>
@@ -198,29 +197,25 @@ function AccountKeys({ account }: Props) {
label="Create Access key"
/>
-
+
- {accessKeys.length > 0 ? (
-
- ) : (
- }
- title="No key created"
+
);
diff --git a/src/react/account/details/properties/SecretKeyModal.tsx b/src/react/account/details/properties/SecretKeyModal.tsx
index c0bcfe4c1..e01c1db43 100644
--- a/src/react/account/details/properties/SecretKeyModal.tsx
+++ b/src/react/account/details/properties/SecretKeyModal.tsx
@@ -8,13 +8,13 @@ import {
} from '../../../actions';
import { useDispatch, useSelector } from 'react-redux';
import type { AppState } from '../../../../types/state';
-import { Banner, Icon, Stack, Wrap } from '@scality/core-ui';
-import { Button, CopyButton } from '@scality/core-ui/dist/next';
-import { Clipboard } from '../../../ui-elements/Clipboard';
+import { Banner, Icon, Stack, Wrap, spacing } from '@scality/core-ui';
+import { Button, CopyButton, Box } from '@scality/core-ui/dist/next';
+
import { HideCredential } from '../../../ui-elements/Hide';
-import { spacing } from '@scality/core-ui/dist/style/theme';
+
import { useDataServiceRole } from '../../../DataServiceRoleProvider';
-import { Box } from '@scality/core-ui/dist/next';
+
import styled from 'styled-components';
type Props = {
account: Account;
@@ -109,7 +109,7 @@ const modalBody = (key: AccountKey | null) => {
@@ -122,7 +122,7 @@ const modalBody = (key: AccountKey | null) => {
{key.accessKey}
{' '}
- {' '}
+ {' '}
@@ -133,7 +133,7 @@ const modalBody = (key: AccountKey | null) => {
{' '}
- {' '}
+ {' '}
diff --git a/src/react/account/details/properties/__tests__/AccountInfo.test.tsx b/src/react/account/details/properties/__tests__/AccountInfo.test.tsx
index 078534c62..ec2d13a7e 100644
--- a/src/react/account/details/properties/__tests__/AccountInfo.test.tsx
+++ b/src/react/account/details/properties/__tests__/AccountInfo.test.tsx
@@ -68,19 +68,19 @@ describe('AccountInfo', () => {
const { component } = reduxMount();
expect(component.find(Table)).toHaveLength(1);
const rows = component.find(T.Row);
- // TODO: switched from 5 -> 3 because we hide the root user email and arn
+ // switched from 5 -> 3 because we hide the root user email and arn
expect(rows).toHaveLength(3);
const firstRow = rows.first();
testRow(firstRow, {
key: 'Account ID',
value: account1.id,
- extraCellComponent: 'Clipboard',
+ extraCellComponent: 'CopyButton',
});
const secondRow = rows.at(1);
testRow(secondRow, {
key: 'Name',
value: account1.Name,
- extraCellComponent: 'Clipboard',
+ extraCellComponent: 'CopyButton',
});
const thirdRow = rows.at(2);
testRow(thirdRow, {
diff --git a/src/react/account/details/properties/__tests__/AccountKeys.test.tsx b/src/react/account/details/properties/__tests__/AccountKeys.test.tsx
index 86fa2e702..d58ccb862 100644
--- a/src/react/account/details/properties/__tests__/AccountKeys.test.tsx
+++ b/src/react/account/details/properties/__tests__/AccountKeys.test.tsx
@@ -93,6 +93,6 @@ describe('AccountKeys', () => {
component.queryByTestId('root-access-keys-banner'),
).not.toBeInTheDocument();
// Check if there is the Warning in the table
- expect(component.getByText('No key created')).toBeInTheDocument();
+ expect(component.getByText('No access keys found')).toBeInTheDocument();
});
});
diff --git a/src/react/account/iamAttachment/AttachmentConfirmationModal.tsx b/src/react/account/iamAttachment/AttachmentConfirmationModal.tsx
index fc7dfff22..258eba591 100644
--- a/src/react/account/iamAttachment/AttachmentConfirmationModal.tsx
+++ b/src/react/account/iamAttachment/AttachmentConfirmationModal.tsx
@@ -1,7 +1,7 @@
import { useState } from 'react';
import { useSelector } from 'react-redux';
-import { Table } from '@scality/core-ui/dist/components/tablev2/Tablev2.component';
-import { Box, Button } from '@scality/core-ui/dist/next';
+
+import { Box, Button, Table } from '@scality/core-ui/dist/next';
import { CustomModal as Modal, ModalBody } from '../../ui-elements/Modal';
import { useMutation, useQueryClient } from 'react-query';
import { useIAMClient } from '../../IAMProvider';
@@ -15,7 +15,6 @@ import {
} from './AttachmentTypes';
import { useTheme } from 'styled-components';
import { useHistory } from 'react-router-dom';
-import { InlineButton } from '../../ui-elements/Table';
import {
getListAttachedUserPoliciesQuery,
getListEntitiesForPolicyQuery,
@@ -290,8 +289,9 @@ function AttachmentConfirmationModal({
{attachmentOperationsStatuses[resourceId]}{' '}
-
@@ -334,10 +334,6 @@ function AttachmentConfirmationModal({
{
- return <>{Rows}>;
- }}
>
diff --git a/src/react/account/iamAttachment/AttachmentTable.tsx b/src/react/account/iamAttachment/AttachmentTable.tsx
index 091236409..7f59e89ff 100644
--- a/src/react/account/iamAttachment/AttachmentTable.tsx
+++ b/src/react/account/iamAttachment/AttachmentTable.tsx
@@ -14,15 +14,16 @@ import {
Loader,
SearchInput,
SecondaryText,
+ spacing,
Tooltip,
} from '@scality/core-ui';
import styled from 'styled-components';
-import { spacing } from '@scality/core-ui/dist/style/theme';
import {
AttachableEntity,
AttachmentOperation,
AttachmentAction,
} from './AttachmentTypes';
+import { tableRowHeight } from '@scality/core-ui/dist/components/tablev2/TableUtils';
type AttachableEntityWithPendingStatus = {
isPending?: boolean;
@@ -77,7 +78,7 @@ const MenuContainer = styled.ul<{
: ''}
border-top: 0;
li {
- padding: ${spacing.sp8};
+ padding: ${spacing.r8};
cursor: pointer;
border-top: 1px solid ${(props) => props.theme.backgroundLevel2};
&[aria-selected='true'] {
@@ -87,11 +88,7 @@ const MenuContainer = styled.ul<{
`;
const SearchBoxContainer = styled.div`
- margin-bottom: ${spacing.sp24};
- width: 78%;
- .sc-tooltip {
- width: 100%;
- }
+ margin-bottom: ${spacing.r24};
`;
const StyledSearchInput = styled(SearchInput)`
@@ -108,7 +105,7 @@ const StyledSearchInput = styled(SearchInput)`
const AttachmentTableContainer = styled.div`
height: 80%;
background: ${(props) => props.theme.backgroundLevel3};
- padding: ${spacing.sp24};
+ padding: ${spacing.r24};
`;
const StyledTable = styled.div`
@@ -119,6 +116,7 @@ const StyledTable = styled.div`
export const CenterredSecondaryText = styled(SecondaryText)`
display: block;
text-align: center;
+ line-height: ${tableRowHeight[rowHeight]}rem;
`;
export const AttachmentTable = <
@@ -372,8 +370,12 @@ export const AttachmentTable = <