Skip to content

Commit

Permalink
style: fix whitespace issues in popup-manager.tsx (#570)
Browse files Browse the repository at this point in the history
- extra whitespace in import and lacking newlines in component JSX

Signed-off-by: Anton Gilgur <[email protected]>
  • Loading branch information
agilgur5 authored Aug 22, 2024
1 parent 13ce982 commit fb8529b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/popup/popup-manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from 'react';
import { Form, FormApi, FormValues, RenderReturn, ValidateValuesFunction } from 'react-form';
import { BehaviorSubject } from 'rxjs';

import { PopupProps } from './popup';
import { PopupProps } from './popup';

export interface PopupApi {
confirm(title: string, message: string | React.ComponentType): Promise<boolean>;
Expand Down Expand Up @@ -41,8 +41,8 @@ export class PopupManager implements PopupApi {
content,
footer: (
<div>
<button qe-id='argo-popup-ok-button' className='argo-button argo-button--base' onClick={() => closeAndResolve(true)}>OK</button> <button
qe-id='argo-popup-cancel-button' className='argo-button argo-button--base-o' onClick={() => closeAndResolve(false)}>Cancel</button>
<button qe-id='argo-popup-ok-button' className='argo-button argo-button--base' onClick={() => closeAndResolve(true)}>OK</button>
<button qe-id='argo-popup-cancel-button' className='argo-button argo-button--base-o' onClick={() => closeAndResolve(false)}>Cancel</button>
</div>
),
});
Expand Down Expand Up @@ -98,8 +98,8 @@ export class PopupManager implements PopupApi {
),
footer: (
<div>
<button qe-id='prompt-popup-ok-button' className='argo-button argo-button--base' onClick={(e) => formApi.submitForm(e)}>OK</button> <button
qe-id='prompt-popup-cancel-button' className='argo-button argo-button--base-o' onClick={() => closeAndResolve(null)}>Cancel</button>
<button qe-id='prompt-popup-ok-button' className='argo-button argo-button--base' onClick={(e) => formApi.submitForm(e)}>OK</button>
<button qe-id='prompt-popup-cancel-button' className='argo-button argo-button--base-o' onClick={() => closeAndResolve(null)}>Cancel</button>
</div>
),
});
Expand Down

0 comments on commit fb8529b

Please sign in to comment.