formatting

This commit is contained in:
2025-01-06 13:09:46 +03:30
parent 6371630380
commit 82d8f1c7e9
28 changed files with 718 additions and 640 deletions

View File

@@ -1,5 +1,7 @@
export const formatCounter = (counter) => {
const minutes = Math.floor(counter / 60).toString().padStart(2, '0');
const seconds = (counter % 60).toString().padStart(2, '0');
const minutes = Math.floor(counter / 60)
.toString()
.padStart(2, "0");
const seconds = (counter % 60).toString().padStart(2, "0");
return `${minutes}:${seconds}`;
};
};