Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
karesti committed Nov 28, 2024
1 parent 48848d0 commit 584e041
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ const BackupsConfigurationTuning = () => {
{configuration.feature.backupsCache &&
configuration.feature.backupsCache.sites.map((site, index) => {
return (
<FormFieldGroupExpandable id={site.siteName + '-expand-button'}
<FormFieldGroupExpandable
id={site.siteName + '-expand-button'}
key={site.siteName + '-expand'}
header={<FormFieldGroupHeader titleText={{ text: site.siteName, id: site.siteName + '-titleText-id' }} />}
>
Expand Down
3 changes: 2 additions & 1 deletion src/app/XSite/StateTransfer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ const StateTransfer = (props: {
onClose={() => props.closeModal(false)}
aria-label="State transfer modal"
actions={[
<Button data-cy={props.action == 'start' ? 'startTransferButton' : 'cancelStateTransferButton'}
<Button
data-cy={props.action == 'start' ? 'startTransferButton' : 'cancelStateTransferButton'}
key="state-transfer-button"
onClick={() => props.closeModal(true)}
variant={props.action == 'start' ? ButtonVariant.primary : ButtonVariant.danger}
Expand Down
12 changes: 9 additions & 3 deletions src/app/XSite/XSiteCache.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ const XSiteCache = (props) => {

if (stStatus == ST_SENDING) {
return (
<Button data-cy={backup.name + "-cancelStateTransferButton"}
<Button
data-cy={backup.name + '-cancelStateTransferButton'}
variant={ButtonVariant.danger}
onClick={() =>
setStateTransferModal({
Expand All @@ -222,14 +223,19 @@ const XSiteCache = (props) => {

if (stStatus == ST_SEND_OK || stStatus == ST_SEND_FAILED || stStatus == ST_SEND_CANCELED) {
return (
<Button data-cy={backup.name + "-clearStateButton"} variant={ButtonVariant.tertiary} onClick={() => clearStateTransfer(backup.name)}>
<Button
data-cy={backup.name + '-clearStateButton'}
variant={ButtonVariant.tertiary}
onClick={() => clearStateTransfer(backup.name)}
>
{t('caches.backups.clear-state-action')}
</Button>
);
}

return (
<Button data-cy={backup.name + "-startTransfer"}
<Button
data-cy={backup.name + '-startTransfer'}
variant={ButtonVariant.secondary}
onClick={() =>
setStateTransferModal({
Expand Down

0 comments on commit 584e041

Please sign in to comment.