diff --git a/src/components/Task.tsx b/src/components/Task.tsx index 013ea19..f802dfa 100644 --- a/src/components/Task.tsx +++ b/src/components/Task.tsx @@ -1,6 +1,5 @@ import React from 'react'; - import PropTypes from 'prop-types'; export default function Task({ task: { id, title, state }, onArchiveTask, onPinTask }) { return ( @@ -30,6 +29,7 @@ export default function Task({ task: { id, title, state }, onArchiveTask, onPinT readOnly={true} name="title" placeholder="Input title" + style={{ backgroundColor: 'red' }} /> @@ -46,20 +46,4 @@ export default function Task({ task: { id, title, state }, onArchiveTask, onPinT )} ); -} - - Task.propTypes = { - /** Composition of the task */ - task: PropTypes.shape({ - /** Id of the task */ - id: PropTypes.string.isRequired, - /** Title of the task */ - title: PropTypes.string.isRequired, - /** Current state of the task */ - state: PropTypes.string.isRequired, - }), - /** Event to change the task to archived */ - onArchiveTask: PropTypes.func, - /** Event to change the task to pinned */ - onPinTask: PropTypes.func, - }; \ No newline at end of file +} \ No newline at end of file