Skip to content

Commit

Permalink
add controls and links
Browse files Browse the repository at this point in the history
  • Loading branch information
yu23ki14 committed Feb 12, 2025
1 parent 322b69b commit 9bf9cab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/components/post/Post.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ export const Post = ({ post }: PostProps) => {
<Text fw="bolder">{post.xUser.name}</Text>
</Group>
<Text>{post.text}</Text>
{post.links?.map((link, index) => (
<a key={`${post.postId}link_${index}`} href={link.url}>

Check failure on line 45 in app/components/post/Post.tsx

View workflow job for this annotation

GitHub Actions / Code Problem Check

Props should be sorted alphabetically
<Text c="blue">{link.url}</Text>
</a>
))}
{post.mediaDetails != null && (
<PostMediaGrid medias={post.mediaDetails} postId={post.postId} />
)}
Expand Down
1 change: 1 addition & 0 deletions app/components/post/PostMedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const PostMedia = ({
preload="none"
src={media.url}
width={media.width}
controls

Check failure on line 41 in app/components/post/PostMedia.tsx

View workflow job for this annotation

GitHub Actions / Code Problem Check

Props should be sorted alphabetically
{...imageProps}
>
<span>
Expand Down

0 comments on commit 9bf9cab

Please sign in to comment.