9faca8da2b
i18n messages, handle error case max copy copy update @lbry/components and tweak range styles sigfigs error catching and cleanup apply review changes style table and unlock button handle tip errors separate fileDescription from fileDetails make expandable cards ui tweaks tweak copy, style, behavior remove unused strings forgot an important line
32 lines
818 B
JavaScript
32 lines
818 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import DateTime from 'component/dateTime';
|
|
import FileViewCount from 'component/fileViewCount';
|
|
import CreditAmount from 'component/common/credit-amount';
|
|
|
|
type Props = {
|
|
uri: string,
|
|
claim: StreamClaim,
|
|
pendingAmount: string,
|
|
};
|
|
|
|
function FileSubtitle(props: Props) {
|
|
const { uri, claim, pendingAmount } = props;
|
|
|
|
return (
|
|
<div className="media__subtitle--between">
|
|
<DateTime uri={uri} show={DateTime.SHOW_DATE} />
|
|
<span>
|
|
<CreditAmount
|
|
badge={false}
|
|
amount={parseFloat(claim.amount) + parseFloat(pendingAmount || claim.meta.support_amount)}
|
|
precision={2}
|
|
/>
|
|
{' • ' /* this is bad, but it's quick! */}
|
|
<FileViewCount uri={uri} />
|
|
</span>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default FileSubtitle;
|