From b55f643bf7c27cc57c374db9fdcd765d22154072 Mon Sep 17 00:00:00 2001 From: Roy Schut Date: Fri, 5 Mar 2021 15:33:32 +0100 Subject: [PATCH] feat(campaign): change next task button to skip task --- src/components/ActiveTask/ActiveTask.jsx | 3 +-- src/components/ActiveTask/ActiveTask.test.jsx | 2 +- src/i18n/locales/en/task.json | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/ActiveTask/ActiveTask.jsx b/src/components/ActiveTask/ActiveTask.jsx index 3f3c039..6afabba 100644 --- a/src/components/ActiveTask/ActiveTask.jsx +++ b/src/components/ActiveTask/ActiveTask.jsx @@ -93,10 +93,9 @@ export default function ActiveTask ({ {!loading && !noTasks && ( )} diff --git a/src/components/ActiveTask/ActiveTask.test.jsx b/src/components/ActiveTask/ActiveTask.test.jsx index cf6ac44..68d44ee 100644 --- a/src/components/ActiveTask/ActiveTask.test.jsx +++ b/src/components/ActiveTask/ActiveTask.test.jsx @@ -12,7 +12,7 @@ describe('', () => { test('displays next task with task props', () => { const { getByText } = render(); - expect(getByText('Next task')).toBeTruthy(); + expect(getByText('Skip task')).toBeTruthy(); }); test('displays loading with loading prop', () => { diff --git a/src/i18n/locales/en/task.json b/src/i18n/locales/en/task.json index 3bb6b31..7517d30 100644 --- a/src/i18n/locales/en/task.json +++ b/src/i18n/locales/en/task.json @@ -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.",