diff --git a/src/components/common/TokenDetails.jsx b/src/components/common/TokenDetails.jsx index 1c1435b..83bd66f 100644 --- a/src/components/common/TokenDetails.jsx +++ b/src/components/common/TokenDetails.jsx @@ -36,46 +36,55 @@ export const TokenDetails = ({ data }) => {

Token ID: {data?.token}

-
- - - -

- Issued on: {dayjs(data?.metadata?.issued_at).format('DD MMMM YYYY')} -

-
-
- - - -

- Expires on: {dayjs(data?.metadata?.expires_at).format('DD MMMM YYYY')} -

-
-
- - {' '} - - - {' '} - -

- Days until expiration:{' '} - {Math.abs(dayjs(data?.metadata?.expires_at).diff(Date.now(), 'days'))} -

-
+ {data?.metadata?.issued_at && ( +
+ + + +

+ Issued on: {dayjs(data?.metadata?.issued_at).format('DD MMMM YYYY')} +

+
+ )} + {data?.metadata?.expires_at && ( +
+ + + +

+ Expires on:{' '} + {dayjs(data?.metadata?.expires_at).format('DD MMMM YYYY')} +

+
+ )} + {data?.metadata?.expires_at && ( +
+ + {' '} + + + {' '} + +

+ Days until expiration:{' '} + {Math.abs( + dayjs(data?.metadata?.expires_at).diff(Date.now(), 'days') + )} +

+
+ )}
{ ) } /> + window.open(Links.ELECTIONS, '_blank')} + /> { title="Genius" description="This SBT is a testament to your genius and visionary prowess, propelling the NEAR ecosystem to new heights with brilliant ideas. Unleash its power and shape the future like never before!" /> -