Implemented the Reading and Listening initial screens according to the new designs, creating new components as needed
This commit is contained in:
@@ -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")}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user