diff --git a/docs/src/containers/Testimonial/index.js b/docs/src/containers/Testimonial/index.js index 7a40092a1..ee51a332d 100644 --- a/docs/src/containers/Testimonial/index.js +++ b/docs/src/containers/Testimonial/index.js @@ -91,7 +91,12 @@ const Testimonial = () => {
{firstColumn.map((item, i) => { - if (item.type === 'tweet') return + if (item.type === 'tweet') + return ( +
+ +
+ ) if (item.type === 'youtube') return (
@@ -111,7 +116,12 @@ const Testimonial = () => {
{secondColumn.map((item, i) => { - if (item.type === 'tweet') return + if (item.type === 'tweet') + return ( +
+ +
+ ) if (item.type === 'youtube') return (
@@ -131,7 +141,12 @@ const Testimonial = () => {
{thirdColumn.map((item, i) => { - if (item.type === 'tweet') return + if (item.type === 'tweet') + return ( +
+ +
+ ) if (item.type === 'youtube') return (
@@ -151,7 +166,12 @@ const Testimonial = () => {
{fourthColumn.map((item, i) => { - if (item.type === 'tweet') return + if (item.type === 'tweet') + return ( +
+ +
+ ) if (item.type === 'youtube') return (
diff --git a/docs/src/styles/components/base.scss b/docs/src/styles/components/base.scss index 9eb38e7c6..56d4dcaa7 100644 --- a/docs/src/styles/components/base.scss +++ b/docs/src/styles/components/base.scss @@ -156,11 +156,14 @@ } } -.actions_node_modules-react-tweet-dist-twitter-theme-tweet-actions-module, -.authorFollow_node_modules-react-tweet-dist-twitter-theme-tweet-header-module { - display: none !important; -} - -.replies_node_modules-react-tweet-dist-twitter-theme-tweet-replies-module { - margin-top: 10px; +.tweet-wrapper { + [class*='actions_'] { + display: none !important; + } + [class*='.authorFollow_'] { + display: none !important; + } + [class*='replies_'] { + margin-top: 10px; + } }