Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
feat(campaign): change next task button to skip task
Browse files Browse the repository at this point in the history
  • Loading branch information
royschut committed Mar 5, 2021
1 parent 0a4fa02 commit b55f643
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/ActiveTask/ActiveTask.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ export default function ActiveTask ({
{!loading && !noTasks && (
<Button
onClick={handleSubmit}
variant="contained"
color="primary"
>
{t('next_task')}
{t('skip_task')}
</Button>
)}
</AppbarBottom>
Expand Down
2 changes: 1 addition & 1 deletion src/components/ActiveTask/ActiveTask.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('<ActiveTask />', () => {
test('displays next task with task props', () => {
const { getByText } = render(<ActiveTask name="abc" url="https://demo.videodock.com/trompa/ce-task" />);

expect(getByText('Next task')).toBeTruthy();
expect(getByText('Skip task')).toBeTruthy();
});

test('displays loading with loading prop', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/locales/en/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"close": "Close",
"description": "Work on tasks related to the selected campaign.",
"loading": "Loading...",
"next_task": "Next task",
"skip_task": "Skip task",
"no_tasks_left": "No tasks left",
"no_tasks_available": "There are currently no tasks available for this campaign",
"this_task_is_not_yet_available": "This task is not yet available.",
Expand Down

0 comments on commit b55f643

Please sign in to comment.