import React from 'react'; import { Spin } from 'antd'; import AddressRow from 'components/AddressRow'; import Placeholder from 'components/Placeholder'; import UnitDisplay from 'components/UnitDisplay'; const ContributorsBlock = () => { // TODO: Get contributors from proposal console.warn('TODO: Get contributors from proposal for Proposal/Contributors/index.tsx'); const proposal = { contributors: [] as any }; let content; if (proposal) { if (proposal.contributors.length) { content = proposal.contributors.map((contributor: any) => ( } /> )); } else { content = ( ); } } else { content = ; } return (
{proposal.contributors.length ? ( <>

Contributors

{content}
) : ( content )}
); }; export default ContributorsBlock;