Skip to content

Commit

Permalink
fix: Resolve lint issues in UI code
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Tang <[email protected]>
  • Loading branch information
terrytangyuan committed Jan 10, 2024
1 parent cc88116 commit 0b48ece
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ui/src/app/reports/components/reports.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export function Reports({match, location, history}: RouteComponentProps<any>) {
<p>
Use this page to find costly or time consuming workflows. You must label workflows you want to report on. If you use <b>workflow templates</b> or{' '}
<b>cron workflows</b>, your workflows will be automatically labelled. You'll probably need to enable the{' '}
<a href='https://argo-workflows.readthedocs.io/en/release-3.5/workflow-archive/'>workflow archive</a> to get long term data. Only the {limit} most recent
workflows are shown.
<a href='https://argo-workflows.readthedocs.io/en/release-3.5/workflow-archive/'>workflow archive</a> to get long term data. Only the {limit} most
recent workflows are shown.
</p>
<p>Select a namespace and at least one label to get a report.</p>
<p>
Expand Down
3 changes: 2 additions & 1 deletion ui/src/app/shared/components/cost-optimisation-nudge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {Nudge} from './nudge';

export const CostOptimisationNudge = (props: {name: string; children: ReactNode}) => (
<Nudge key={'cost-optimization-nudge/' + props.name}>
<i className='fa fa-money-bill-alt status-icon--pending' /> {props.children} <a href='https://argo-workflows.readthedocs.io/en/release-3.5/cost-optimisation/'>Learn more</a>
<i className='fa fa-money-bill-alt status-icon--pending' /> {props.children}{' '}
<a href='https://argo-workflows.readthedocs.io/en/release-3.5/cost-optimisation/'>Learn more</a>
</Nudge>
);
3 changes: 2 additions & 1 deletion ui/src/app/shared/components/security-nudge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {Nudge} from './nudge';

export const SecurityNudge = (props: {children: ReactNode}) => (
<Nudge key='security-nudge'>
<i className='fa fa-lock-open status-icon--failed' /> {props.children} <a href='https://argo-workflows.readthedocs.io/en/release-3.5/workflow-pod-security-context/'>Learn more</a>
<i className='fa fa-lock-open status-icon--failed' /> {props.children}{' '}
<a href='https://argo-workflows.readthedocs.io/en/release-3.5/workflow-pod-security-context/'>Learn more</a>
</Nudge>
);

0 comments on commit 0b48ece

Please sign in to comment.