diff --git a/__tests__/Unit/Components/Tasks/Card.test.tsx b/__tests__/Unit/Components/Tasks/Card.test.tsx index 288b04e07..7e19e98b7 100644 --- a/__tests__/Unit/Components/Tasks/Card.test.tsx +++ b/__tests__/Unit/Components/Tasks/Card.test.tsx @@ -532,12 +532,10 @@ describe('Task card', () => { expect(spanElement).toHaveTextContent('Started 3 years ago'); // Mocked date from moment }); it('Should show the status of the task', () => { - // TODO: After UI change remove dev flag renderWithRouter( - , - { query: { dev: 'true' } } + ); const spanElement = screen.getByTestId('task-status'); expect(spanElement).toHaveTextContent('Completed'); diff --git a/src/components/tasks/card/index.tsx b/src/components/tasks/card/index.tsx index 0bba117a4..760723919 100644 --- a/src/components/tasks/card/index.tsx +++ b/src/components/tasks/card/index.tsx @@ -1,7 +1,6 @@ import { FC, useState, useEffect, useRef, ChangeEvent } from 'react'; import Image from 'next/image'; import classNames from '@/components/tasks/card/card.module.scss'; -import DevFeature from '@/components/DevFeature'; import getDateInString from '@/helperFunctions/getDateInString'; import { useKeyLongPressed } from '@/hooks/useKeyLongPressed'; import { CardProps } from '@/interfaces/task.type'; @@ -565,15 +564,12 @@ const Card: FC = ({ {/* EDIT task status */}
- {isEditable && ( + {isEditable ? ( - )} -
- - {cardDetails.status && ( + ) : (

Status: @@ -590,7 +586,7 @@ const Card: FC = ({

)} -
+