Skip to content

Commit

Permalink
PR feedback - @HanaXu
Browse files Browse the repository at this point in the history
  • Loading branch information
cpathipa committed Sep 24, 2024
1 parent 02a5c12 commit e749e1b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 64 deletions.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { withRouter } from 'react-router-dom';
import { compose as composeC } from 'recompose';

import { Accordion } from 'src/components/Accordion';
import { ActionsPanel } from 'src/components/ActionsPanel/ActionsPanel';
import { Box } from 'src/components/Box';
import { Button } from 'src/components/Button/Button';
import { ConfirmationDialog } from 'src/components/ConfirmationDialog/ConfirmationDialog';
Expand All @@ -47,7 +48,6 @@ import {
parseAddresses,
transformConfigsForRequest,
} from '../utils';
import { NodeBalancerConfigConfirmationActions } from './NodeBalancerConfigConfirmationActions';

import type {
NodeBalancerConfigFieldsWithStatus,
Expand Down Expand Up @@ -1130,10 +1130,19 @@ class NodeBalancerConfigurations extends React.Component<

<ConfirmationDialog
actions={
<NodeBalancerConfigConfirmationActions
isLoading={this.state.deleteConfigConfirmDialog.submitting}
onClose={this.onCloseConfirmation}
onDelete={this.deleteConfig}
<ActionsPanel
primaryButtonProps={{
'data-testid': 'confirm-cancel',
label: 'Delete',
loading: this.state.deleteConfigConfirmDialog.submitting,
onClick: this.deleteConfig,
}}
secondaryButtonProps={{
'data-testid': 'cancel-cancel',
label: 'Cancel',
onClick: this.onCloseConfirmation,
}}
style={{ padding: 0 }}
/>
}
title={
Expand Down

0 comments on commit e749e1b

Please sign in to comment.