This commit is contained in:
2021-11-12 13:18:15 -03:00
parent 65f81a0dbc
commit c7ff40d79f
8 changed files with 102 additions and 1 deletions

View File

@@ -103,6 +103,9 @@ function App() {
/>
<ClockifyTasksDisplay
setTimerOn={setTimerOn}
signIn={signIn}
timerOn={timerOn}

View File

@@ -219,6 +219,14 @@ const ClockifyTasksDisplay = (props) => {
value={props.taskName}
placeholder="Add task description"
className={props.projectID !== 0 ? null: 'disabled'}
onKeyPress={event => {
if (event.key === 'Enter') {
props.setTimerOn(true)
}
}}
/>
</div>
: null

View File

@@ -36,7 +36,6 @@ const MainPomodoro = (props) => {
setStartTime('')
setEndTime('')
props.setTaskName('')
}
})