Warn about off-chain contributions (#5723)

* Warn about off-chain contributions

* Expand description

* Expand

* Tweak
This commit is contained in:
Jaco 2021-06-30 12:53:55 +03:00 committed by GitHub
parent d6ccc59831
commit 6184f2c959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ import type { Campaign, LeasePeriod } from '../types';
import React, { useMemo, useRef } from 'react';
import { Table } from '@polkadot/react-components';
import { MarkWarning, Table } from '@polkadot/react-components';
import { useBestHash, useIsParasLinked } from '@polkadot/react-hooks';
import { useTranslation } from '../translate';
@ -85,6 +85,10 @@ function Funds ({ bestNumber, className, leasePeriod, value }: Props): React.Rea
return (
<>
<MarkWarning
className='warning centered'
content={t<string>('Do not transfer any funds directly to a specific account that is associated with a loan or a team. Use the "Contribute" action to record the contribution on-chain using the crowdloan runtime module. When the fund is dissolved, after either the parachain lease expires or the loan ending without winning, the full value will be returned to your account by the runtime. Funds sent directly to an account, without using the crowdloan functionality, may not be returned by the receiving account.')}
/>
<Table
className={className}
empty={value && activeSorted && t<string>('No active campaigns found')}