Skip to content

Commit

Permalink
fixed review comments pt.1
Browse files Browse the repository at this point in the history
  • Loading branch information
heavycrystal committed Jan 24, 2024
1 parent 7816073 commit 182a67a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions ui/app/mirrors/edit/[mirrorId]/cdcDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import moment from 'moment';
import Link from 'next/link';
import MirrorValues from './configValues';
import TablePairs from './tablePairs';
import { Button } from '@/lib/Button';

type props = {
syncs: SyncStatusRow[];
Expand Down Expand Up @@ -153,7 +154,7 @@ function statusChangeHandle(
// hopefully there's a better way to do this cast
if (mirrorStatus.toString() === FlowStatus[FlowStatus.STATUS_RUNNING]) {
return (
<button
<Button
className='IconButton'
aria-label='Pause'
onClick={async () => {
Expand All @@ -171,11 +172,11 @@ function statusChangeHandle(
}}
>
<Icon name='pause' />
</button>
</Button>
);
} else if (mirrorStatus.toString() === FlowStatus[FlowStatus.STATUS_PAUSED]) {
return (
<button
<Button
className='IconButton'
aria-label='Play'
onClick={async () => {
Expand All @@ -193,18 +194,18 @@ function statusChangeHandle(
}}
>
<Icon name='play_circle' />
</button>
</Button>
);
} else {
return (
<button
<Button
className='IconButton'
aria-label='Pause (disabled)'
disabled={true}
style={{ opacity: '50%' }}
>
<Icon name='pause' />
</button>
</Button>
);
}
}
Expand Down

0 comments on commit 182a67a

Please sign in to comment.