Skip to content

Commit

Permalink
♻️ Refactor per review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
foysalit committed Dec 5, 2024
1 parent ea3c326 commit 93c1544
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
6 changes: 3 additions & 3 deletions app/actions/ModActionPanel/BlobList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ export function BlobList(props: {

return (
<fieldset className="space-y-5 min-w-0">
{!blobs.length ? (
<div className="text-sm text-gray-400">No blobs found</div>
) : (
{blobs.length > 0 ? (
<BlobListLightbox
blobs={blobs}
authorDid={props.authorDid}
slideIndex={lightboxImageIndex}
onClose={() => setLightboxImageIndex(-1)}
/>
) : (
<div className="text-sm text-gray-400">No blobs found</div>
)}
{blobs.map((blob, i) => {
const { subjectStatus } = blob.moderation ?? {}
Expand Down
8 changes: 0 additions & 8 deletions components/common/BlobListLightbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ export const BlobListLightbox = ({
}
}

console.log(
blobs.map((blob) => ({
src: getBlobUrl({
cid: blob.cid,
}),
})),
)

return (
<Lightbox
open={slideIndex >= 0}
Expand Down

0 comments on commit 93c1544

Please sign in to comment.