Skip to content

Commit

Permalink
re-add share and save buttons to in-feed large post
Browse files Browse the repository at this point in the history
  • Loading branch information
sharunkumar committed Nov 23, 2023
1 parent 9509349 commit 57b8866
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/features/post/inFeed/large/LargePost.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import { ActionButton } from "../../actions/ActionButton";
import { IonIcon } from "@ionic/react";
import { share } from "../../../../helpers/lemmy";
import { SaveButton } from "../../shared/SaveButton";
import { shareSocialOutline } from "ionicons/icons";
import styled from "@emotion/styled";
import { css } from "@emotion/react";
import { megaphone } from "ionicons/icons";
Expand Down Expand Up @@ -196,8 +201,18 @@ export default function LargePost({ post, communityMode }: PostProps) {
<RightDetails>
<MoreActions post={post} onFeed />
<MoreModActions post={post} onFeed />
<VoteButton type="up" postId={post.post.id} />
<VoteButton type="down" postId={post.post.id} />
{/* <VoteButton type="up" postId={post.post.id} /> */}
{/* <VoteButton type="down" postId={post.post.id} /> */}
<ActionButton>
<IonIcon
icon={shareSocialOutline}
onClick={(e) => {
e.stopPropagation();
share(post.post);
}}
/>
</ActionButton>
<SaveButton postId={post.post.id} />
</RightDetails>
</Details>

Expand Down

0 comments on commit 57b8866

Please sign in to comment.