issue-166-open-timestamps #220
@ -69,17 +69,17 @@ export const UsersDetails = ({ meta }: UsersDetailsProps) => {
|
|||||||
nostrId: string
|
nostrId: string
|
||||||
) => {
|
) => {
|
||||||
if (isTimestampVerified(timestamps, nostrId)) {
|
if (isTimestampVerified(timestamps, nostrId)) {
|
||||||
return <FontAwesomeIcon icon={faCheck} />
|
return <FontAwesomeIcon className={styles.ticket} icon={faCheck} />
|
||||||
eugene marked this conversation as resolved
Outdated
|
|||||||
} else {
|
} else {
|
||||||
return <FontAwesomeIcon icon={faClock} />
|
return <FontAwesomeIcon className={styles.ticket} icon={faClock} />
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const getCompletedOpenTimestampsInfo = (timestamp: OpenTimestamp) => {
|
const getCompletedOpenTimestampsInfo = (timestamp: OpenTimestamp) => {
|
||||||
if (timestamp.verification) {
|
if (timestamp.verification) {
|
||||||
return <FontAwesomeIcon icon={faCheck} />
|
return <FontAwesomeIcon className={styles.ticket} icon={faCheck} />
|
||||||
} else {
|
} else {
|
||||||
return <FontAwesomeIcon icon={faClock} />
|
return <FontAwesomeIcon className={styles.ticket} icon={faClock} />
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -175,11 +175,10 @@ export const UsersDetails = ({ meta }: UsersDetailsProps) => {
|
|||||||
<span className={styles.detailsItem}>
|
<span className={styles.detailsItem}>
|
||||||
<FontAwesomeIcon icon={faCalendarPlus} />{' '}
|
<FontAwesomeIcon icon={faCalendarPlus} />{' '}
|
||||||
{createdAt ? formatTimestamp(createdAt) : <>—</>}{' '}
|
{createdAt ? formatTimestamp(createdAt) : <>—</>}{' '}
|
||||||
{timestamps && timestamps.length > 0 && id && (
|
{timestamps &&
|
||||||
<span className={styles.ticket}>
|
timestamps.length > 0 &&
|
||||||
{getOpenTimestampsInfo(timestamps, id)}
|
id &&
|
||||||
</span>
|
getOpenTimestampsInfo(timestamps, id)}
|
||||||
)}
|
|
||||||
</span>
|
</span>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user
Can we make add the
className={styles.ticket}>
to the icon directly here instead of wrapping the SVG in the code below?