Skip to content

Commit

Permalink
fixed desired changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JSmithOner committed Dec 11, 2023
1 parent da5a2ea commit f6fbd29
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
7 changes: 4 additions & 3 deletions src/components/cards/AssetCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ const AssetCardComponent: FC<AssetCardProps> = (props) => {
let disabled = false

const rentStartDate = moment(props.value.rentStartDate.date)
const rentStartLocale = new Date(
props.value.rentStartDate.date
).toLocaleDateString()

if (rentCalculation === RentCalculation.Realtime) {
const now = moment(new Date().toUTCString())
Expand Down Expand Up @@ -217,9 +220,7 @@ const AssetCardComponent: FC<AssetCardProps> = (props) => {

<div className={classes.groupApart}>
<div className={classes.textSm}>{t('rentStartDate')}</div>
<div className={classes.textSm}>
{rentStartDate.format('DD/MM/YYYY')}
</div>
<div className={classes.textSm}>{rentStartLocale}</div>
</div>

<div style={{ flex: '1 1 auto' }} />
Expand Down
4 changes: 2 additions & 2 deletions src/i18next/locales/fr/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@
"yearly": "Loyers annuels",
"rentedUnits": "Logements loués",
"propertyValue": "Valeur de la propriété",
"rentStartDate": "Début de la rente",
"rentNotStarted":"La rente n'a pas débuté",
"rentStartDate": "Date du premier loyer",
"rentNotStarted":"Le loyer n'a pas débuté",
"isRmmAvailable": "RMM",
"rentStatus": {
"full": "Louée",
Expand Down
13 changes: 2 additions & 11 deletions src/store/features/wallets/walletsSelector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,9 @@ export interface UserRealtoken extends Realtoken {
>
}

export interface RealTokenTransfers {
[id: string]: RealTokenTransfer[]
}

export interface RealTokenTransfer {
amount: number
timestamp: number
}

const DAYS_PER_YEAR = 365
const MONTHES_PER_YEAR = 12
const AVG_DAYS_PER_MONTH = DAYS_PER_YEAR / MONTHES_PER_YEAR
const MONTHS_PER_YEAR = 12
const AVG_DAYS_PER_MONTH = DAYS_PER_YEAR / MONTHS_PER_YEAR

function getRealtokenBalances(
realtoken: Realtoken,
Expand Down

0 comments on commit f6fbd29

Please sign in to comment.