TP-83867 Geolocation changes and User Repository fix (#1116)

* TP-83867 Geolocation changes and User Repository fix

* TP-83867 Geolocation changes and User Repository fix
This commit is contained in:
Shri Prakash Bajpai
2024-09-14 22:20:48 +05:30
committed by GitHub
parent c3980d21c5
commit c31766ce2a

View File

@@ -62,7 +62,7 @@ const GeolocationCard: React.FC<IGeolocationCard> = ({
<div>
<div className={styles.sourceContainer}>
<Typography variant="p3" className={styles.sourceText}>
{formattedTag}
{tag}
</Typography>
</div>
<div className={styles.time}>
@@ -93,45 +93,51 @@ const GeolocationCard: React.FC<IGeolocationCard> = ({
</div>
</div>
<div className={styles.content}>
<div className={'flex flex-row justify-between items-start'}>
<div>
<Typography variant="p3" className={styles.similarLocText}>
Location Timeline: {pingCount - 1}
</Typography>
{clusterLabels?.length > 0 ? (
<>
<div className={styles.tagContainer}>
{clusterLabels?.map((label, index) => {
const keys = Object.keys(
clusterLabelsEnum
) as (keyof typeof clusterLabelsEnum)[];
const clusterLabel = clusterLabelsEnum[keys[index]];
return (
<div className={styles.tag} key={index}>
{clusterLabel}
</div>
);
})}
</div>
</>
) : null}
</div>
{pingCount > 1 && (
<>
<Button
variant="text"
className={styles.similarLocBtn}
onClick={handleViewAllClick}
endAdornment={<ArrowRightIcon width={20} height={20} color="var(--blue-base)" />}
>
View All
</Button>
</>
)}
</div>
<div className={styles.dashedSeperator}>
<DashedSeperator />
</div>
{pingCount >= 1 && (
<>
<div className={'flex flex-row justify-between items-start'}>
<div>
<Typography variant="p3" className={styles.similarLocText}>
Location Timeline: {pingCount - 1}
</Typography>
{clusterLabels?.length > 0 ? (
<>
<div className={styles.tagContainer}>
{clusterLabels?.map((label, index) => {
const keys = Object.keys(
clusterLabelsEnum
) as (keyof typeof clusterLabelsEnum)[];
const clusterLabel = clusterLabelsEnum[keys[index]];
return (
<div className={styles.tag} key={index}>
{clusterLabel}
</div>
);
})}
</div>
</>
) : null}
</div>
{pingCount > 1 && (
<>
<Button
variant="text"
className={styles.similarLocBtn}
onClick={handleViewAllClick}
endAdornment={
<ArrowRightIcon width={20} height={20} color="var(--blue-base)" />
}
>
View All
</Button>
</>
)}
</div>
<div className={styles.dashedSeperator}>
<DashedSeperator />
</div>
</>
)}
{feedbackPresent ? (
<>
<div className={cx(styles.fieldText, ['flex flex-row gap-[4px] truncate pb-[4px]'])}>