lint.
Этот коммит содержится в:
@@ -41,7 +41,7 @@ export default function SelfHostedExpansionCard(props: Props) {
|
|||||||
|
|
||||||
const getMonthsUntilExpiry = () => {
|
const getMonthsUntilExpiry = () => {
|
||||||
const now = new Date();
|
const now = new Date();
|
||||||
return (licenseExpiry.getMonth() - now.getMonth()) + 12 * (licenseExpiry.getFullYear() - now.getFullYear());
|
return (licenseExpiry.getMonth() - now.getMonth()) + (MONTHS_IN_YEAR * (licenseExpiry.getFullYear() - now.getFullYear()));
|
||||||
};
|
};
|
||||||
|
|
||||||
const getMonthlyPrice = () => {
|
const getMonthlyPrice = () => {
|
||||||
@@ -208,6 +208,7 @@ export default function SelfHostedExpansionCard(props: Props) {
|
|||||||
<br/>
|
<br/>
|
||||||
<FormattedMessage
|
<FormattedMessage
|
||||||
id='self_hosted_expansion_rhs_card_cost_per_user_breakdown'
|
id='self_hosted_expansion_rhs_card_cost_per_user_breakdown'
|
||||||
|
/* eslint-disable no-template-curly-in-string */
|
||||||
defaultMessage='${costPerUser} x {monthsUntilExpiry} months'
|
defaultMessage='${costPerUser} x {monthsUntilExpiry} months'
|
||||||
values={{
|
values={{
|
||||||
costPerUser: getMonthlyPrice().toFixed(2),
|
costPerUser: getMonthlyPrice().toFixed(2),
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import {screen, fireEvent, waitFor} from '@testing-library/react';
|
import {screen, fireEvent} from '@testing-library/react';
|
||||||
|
|
||||||
import {GlobalState} from 'types/store';
|
import {GlobalState} from 'types/store';
|
||||||
|
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user