getting data and starting to filter and improve flow

This commit is contained in:
Arjun Patel
2022-01-19 16:05:06 -08:00
parent 3a1731a5e9
commit cbb03df811
8 changed files with 324 additions and 64 deletions
+3 -3
View File
@@ -98,8 +98,8 @@ export default function Links() {
return false;
}
// if I am the sender, then also show
if (link.createdByUserId == currUser.uid) {
// if I am the sender, then also show, but only if it's me sending to a specific person
if (link.createdByUserId == currUser.uid && link.recipients?.length > 0) {
return true;
}
@@ -222,7 +222,7 @@ export default function Links() {
</Tooltip>
{/* table of links */}
<div className="flex flex-row space-x-2 overflow-x-scroll py-2">
<div className="flex flex-row space-x-2 overflow-x-auto py-2">
{getFilteredContent().map((link) => (
<LinkCard key={link.id} link={link} />
))}