Uncardify activity feed

This commit is contained in:
Austin Chen 2022-01-12 13:20:28 -05:00
parent 5c4235a247
commit 7c1d70313b
2 changed files with 7 additions and 9 deletions

View File

@ -31,7 +31,7 @@ export function Linkify(props: { text: string; gray?: boolean }) {
)
})
return (
<span>
<span className="break-words">
{text.split(regex).map((part, i) => (
<Fragment key={i}>
{part}

View File

@ -10,11 +10,7 @@ import { Col } from '../components/layout/col'
function FeedCard(props: { contract: Contract }) {
const { contract } = props
return (
<div className="card bg-white shadow-md rounded-lg divide-y divide-gray-200 py-6 px-4 max-w-4xl">
<ContractFeed contract={contract} feedType="activity" />
</div>
)
return <ContractFeed contract={contract} feedType="activity" />
}
// This does NOT include comment times, since those aren't part of the contract atm.
@ -80,10 +76,12 @@ export function ActivityFeed(props: {
return contracts.length > 0 ? (
<>
<Title text="Recent Activity" />
<Col className="gap-4">
<Title className="mb-0" text="Recent Activity" />
<Col className="divide-gray-300 divide-y">
{activeContracts.map((contract) => (
<FeedCard contract={contract} />
<div className="py-6 px-1 hover:bg-gray-100">
<FeedCard contract={contract} />
</div>
))}
</Col>
</>