Skip to content

Commit 1136542

Browse files
authored
Revert "Temp disable sharethis-react (#91)" (#92)
This reverts commit 8ec9f9e.
1 parent 8ec9f9e commit 1136542

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"react-scripts": "3.4.1",
3030
"react-stripe-elements": "^6.1.2",
3131
"serve": "^11.3.1",
32-
"sharethis-reactjs": "^1.6.0",
32+
"sharethis-reactjs": "^1.5.0",
3333
"typescript": "^3.7.3",
3434
"workbox-build": "^5.1.3"
3535
},

src/SocialShare.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
2-
// import { InlineShareButtons } from 'sharethis-reactjs';
3-
// import { useTranslation } from './app-state';
2+
import { InlineShareButtons } from 'sharethis-reactjs';
3+
import { useTranslation } from './app-state';
44

55
import './SocialShare.scss';
66

@@ -11,11 +11,11 @@ interface SocialShareProps {
1111
}
1212

1313
export const SocialShare: React.FC<SocialShareProps> = (props) => {
14-
// const { t } = useTranslation();
14+
const { t } = useTranslation();
1515

1616
return (
1717
<div className="socialshare">
18-
{/* <InlineShareButtons
18+
<InlineShareButtons
1919
config={{
2020
language: '',
2121
alignment: 'left', // alignment of buttons (left, center, right)
@@ -39,7 +39,7 @@ export const SocialShare: React.FC<SocialShareProps> = (props) => {
3939
subject: t('social-share-subject', { productName: props.name }), // (defaults to og:title or twitter:title)
4040
message: t('social-share-message', { productName: props.name, description: props.description, link: window.location.href }), // (defaults to og:title or twitter:title)
4141
}}
42-
/> */}
42+
/>
4343
</div>
4444
);
4545
};

0 commit comments

Comments
 (0)