Skip to content

Commit

Permalink
Merge pull request #168 from LoneRifle/master
Browse files Browse the repository at this point in the history
refactor(info): remove duplicate sharing/admin buttons
  • Loading branch information
joycesin committed Jul 5, 2020
2 parents 4b87559 + 3893058 commit ea6cb1e
Showing 1 changed file with 1 addition and 56 deletions.
57 changes: 1 addition & 56 deletions src/Components/Info.js
Original file line number Diff line number Diff line change
Expand Up @@ -1849,61 +1849,6 @@ export class Info extends React.Component {
}
</div>
) : null}
<span className="d-inline-block d-md-none">
<Component.Popup
data={this.state.data}
id={this.state.id}
onSubmitEdit={this.showReviewEditMessage}
onSubmitDelete={this.showReviewDeleteMessage}
/>
</span>

<div
className="d-inline-block d-md-none col-xs-6 col-sm-6 col-md-6 col-lg-6"
style={{ padding: "0" }}
>
Share this with friends!
<br />
<FacebookShareButton
url={"www.foodleh.app/info?id=" + this.state.id}
quote={"Hungry? Try out " + this.state.data.name + " now!"}
hashtag={"#saveourFnB"}
>
<FacebookIcon size={32} round={true} />
</FacebookShareButton>{" "}
<span className="" style={{ marginRight: "5px" }}>
<a
href={
"whatsapp://send?text=" +
encodeURIComponent(
"Hungry? Try out " +
this.state.data.name +
" now! Order form / more information at www.foodleh.app/info?id=" +
this.state.id
)
}
>
<img
alt=""
src={whatsapp_icon}
style={{ width: "32px", cursor: "pointer" }}
/>
</a>
</span>
<TelegramShareButton
url={"www.foodleh.app/info?id=" + this.state.id}
title={"Hungry? Try out " + this.state.data.name + " now!"}
>
<TelegramIcon size={32} round={true} />
</TelegramShareButton>{" "}
<TwitterShareButton
url={"www.foodleh.app/info?id=" + this.state.id}
title={"Hungry? Try out " + this.state.data.name + " now!"}
>
<TwitterIcon size={32} round={true} />
</TwitterShareButton>{" "}
</div>

{this.state.data.description ? (
<div>
<br />
Expand Down Expand Up @@ -1958,7 +1903,7 @@ export class Info extends React.Component {
/>
</div>
<div
className="d-none d-md-inline-block col-xs-6 col-sm-6 col-md-6 col-lg-6"
className="d-md-inline-block col-xs-6 col-sm-6 col-md-6 col-lg-6"
style={{ padding: "0" }}
>
<div style={{ fontSize: "12px" }}>
Expand Down

1 comment on commit ea6cb1e

@vercel
Copy link

@vercel vercel bot commented on ea6cb1e Jul 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.