Implemented the Reading and Listening initial screens according to the new designs, creating new components as needed

This commit is contained in:
Tiago Ribeiro
2023-06-15 14:43:29 +01:00
parent 65ebdd7dde
commit 2d46bad40f
13 changed files with 272 additions and 85 deletions

View File

@@ -7,3 +7,15 @@ export function convertCamelCaseToReadable(camelCaseString: string): string {
return readableString;
}
export function formatTimeInMinutes(time: number) {
if (time === 0) {
return "00:00";
}
return `${Math.floor(time / 60)
.toString(10)
.padStart(2, "0")}:${Math.floor(time % 60)
.toString(10)
.padStart(2, "0")}`;
}