feat: migration to electron + next complete

This commit is contained in:
Anoop M D
2022-03-07 17:52:35 +05:30
parent 1f2b64c7cc
commit 37d9f75f64
95 changed files with 1990 additions and 21308 deletions

View File

@@ -0,0 +1,21 @@
import React from 'react';
import StyledWrapper from './StyledWrapper';
const ResponseTime = ({duration}) => {
let durationToDisplay = ''
if(duration > 1000 ) { // duration greater than a second
let seconds = Math.floor(duration / 1000);
let decimal = ((duration % 1000) / 1000) * 100;
durationToDisplay = seconds + '.' + decimal.toFixed(0) + 's';
} else {
durationToDisplay = duration + 'ms'
}
return (
<StyledWrapper className="mt-3 ml-4">
{durationToDisplay}
</StyledWrapper>
)
};
export default ResponseTime;