style: editor tweaks (#736)

* style: menu tweaks

* style: editor tweaks

* style: freeze
This commit is contained in:
Carlos Valente
2024-01-26 14:47:27 +01:00
committed by GitHub
parent c146954a2f
commit f6557a9814
32 changed files with 178 additions and 249 deletions
+1 -4
View File
@@ -315,10 +315,6 @@ export const stateMutations = {
addTime(amount: number) {
mutate((state) => {
// TODO: what kind of validation go here or in the consumer?
if (state.timer.startedAt === null) {
return;
}
state.timer.addedTime += amount;
state.timer.expectedFinish += amount;
state.timer.current += amount;
@@ -407,6 +403,7 @@ export const stateMutations = {
// TODO: can we simplify the didUpdate and shouldNotify
_didUpdate = true;
}
return {
didUpdate: _didUpdate,
doRoll: _doRoll,