Browse Source

add avaialbe date dashboard

main
matthew 2 years ago
parent
commit
1fabfa2c55
  1. 15
      searching-front/app/core/pages/State/State.tsx
  2. 22
      searching-front/app/core/pages/State/styles.module.css

15
searching-front/app/core/pages/State/State.tsx

@ -126,10 +126,17 @@ const State = ({
wide wide
title="Open tonsite" title="Open tonsite"
> >
{getDomainFromUrl(i.address)} <div className={s.newestListItemLeftContent}>
<Button className={s.siteButton} theme="primary"> {getDomainFromUrl(i.address)}
.ton <Button className={s.siteButton} theme="primary">
</Button> .ton
</Button>
</div>
<div className={s.newestListItemLeftDate}>
{i.firstAvailableDate &&
format(new Date(i.firstAvailableDate), "d MMMM").toLowerCase()}
</div>
</Link> </Link>
{i.walletAddress && i.tonBalance && ( {i.walletAddress && i.tonBalance && (

22
searching-front/app/core/pages/State/styles.module.css

@ -142,8 +142,25 @@
.newestListItemLeft { .newestListItemLeft {
position: relative; position: relative;
padding: 24px 0 24px 34px; padding: 24px 0 16px 34px;
flex: 1 1 70%; flex: 1 1 70%;
}
.newestListItemLeft a {
display: flex;
flex-direction: column;
align-items: flex-start;
}
.newestListItemLeftContent {
}
.newestListItemLeftDate {
font-weight: 400;
font-size: 12px;
line-height: 15px;
opacity: 32%;
} }
.newestListItemRight { .newestListItemRight {
@ -194,6 +211,9 @@
padding: 24px 34px; padding: 24px 34px;
justify-content: center; justify-content: center;
} }
.newestListItemLeft{
padding-bottom: 16px;
}
.newestListItemRight { .newestListItemRight {
text-align: left; text-align: left;

Loading…
Cancel
Save