- Added TimeStampBadge component and integrate camera and plate patch setup features
- Implemented TimeStampBadge component to display time ago from a timestamp. - Created CameraControls component with Formik for form handling. - Developed CameraSetup component with tab navigation for camera settings. - Added PlateItem component to display individual sighting details. - Enhanced PlatePatchSetup component to list sightings with timestamp and plate information.
This commit is contained in:
@@ -11,7 +11,7 @@ export const timeAgo = (timestampmili: number | null) => {
|
||||
const diffMins = Math.floor(diffMs / 60000);
|
||||
if (diffMins < 60) {
|
||||
if (diffMins < 1) {
|
||||
return "just now";
|
||||
return "Just now";
|
||||
}
|
||||
return `${diffMins === 1 ? "1 minute" : diffMins + " minutes"} ago`;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user