Placeholder when no activity on folds page

This commit is contained in:
jahooma 2022-01-26 14:39:25 -06:00
parent ef8157025f
commit b1abfcda8b
2 changed files with 14 additions and 6 deletions

View File

@ -33,7 +33,7 @@ export function ContractsGrid(props: {
if (contracts.length === 0) { if (contracts.length === 0) {
return ( return (
<p className="mx-4"> <p className="text-gray-500 mx-4">
No markets found. Would you like to{' '} No markets found. Would you like to{' '}
<Link href="/create"> <Link href="/create">
<a className="text-green-500 hover:underline hover:decoration-2"> <a className="text-green-500 hover:underline hover:decoration-2">

View File

@ -214,11 +214,19 @@ export default function FoldPage(props: {
<Row className={clsx(page === 'activity' ? 'gap-16' : 'gap-8')}> <Row className={clsx(page === 'activity' ? 'gap-16' : 'gap-8')}>
<Col className="flex-1"> <Col className="flex-1">
{page === 'activity' ? ( {page === 'activity' ? (
<ActivityFeed <>
contracts={activeContracts} <ActivityFeed
contractBets={activeContractBets} contracts={activeContracts}
contractComments={activeContractComments} contractBets={activeContractBets}
/> contractComments={activeContractComments}
/>
{activeContracts.length === 0 && (
<div className="text-gray-500 mt-4">
No activity from matching markets.{' '}
{isCurator && 'Try editing to add more tags!'}
</div>
)}
</>
) : ( ) : (
<SearchableGrid <SearchableGrid
contracts={contracts} contracts={contracts}