Skip to content

Commit

Permalink
Rename Pause to Disable
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b committed Jun 25, 2024
1 parent 0048e4f commit 2f1f8e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ticker/SignalGroupCard.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('SignalGroupCard', () => {

fetchMock.mockResponseOnce(JSON.stringify({ status: 'success' }))

await userEvent.click(screen.getByRole('button', { name: 'Pause' }))
await userEvent.click(screen.getByRole('button', { name: 'Disable' }))

expect(fetchMock).toHaveBeenCalledTimes(1)
expect(fetchMock).toHaveBeenCalledWith('http://localhost:8080/v1/admin/tickers/1/signal_group', {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ticker/SignalGroupCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const SignalGroupCard: FC<Props> = ({ ticker }) => {
</Button>
{signalGroup.active ? (
<Button onClick={handleToggle} size="small" startIcon={<FontAwesomeIcon icon={faPause} />}>
Pause
Disable
</Button>
) : (
<Button onClick={handleToggle} size="small" startIcon={<FontAwesomeIcon icon={faPlay} />}>
Expand Down

0 comments on commit 2f1f8e9

Please sign in to comment.