Skip to content

Commit

Permalink
Update PostRecommendation title padding to 8px (#898)
Browse files Browse the repository at this point in the history
* Update PostRecommendation title padding to 8px
* Remove LatestRecommendations component
  • Loading branch information
jm90m authored Oct 25, 2017
1 parent 50c0e27 commit 188559b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 346 deletions.
62 changes: 0 additions & 62 deletions src/components/Sidebar/LatestRecommendations.js

This file was deleted.

65 changes: 0 additions & 65 deletions src/components/Sidebar/LatestRecommendations.less

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Sidebar/PostRecommendation.less
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

&__title {
border-bottom: 1px solid @white-gainsboro;
padding-bottom: 12px;
padding-bottom: 8px;
}

&__link {
Expand Down
188 changes: 0 additions & 188 deletions src/stories/__snapshots__/stories.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1521,194 +1521,6 @@ exports[`Storyshots Sidebar Latest Comments 1`] = `
</div>
`;

exports[`Storyshots Sidebar Latest Recommendations 1`] = `
<div
style={
Object {
"background": "#f9f9f9",
"padding": "40px",
}
}
>
<div
className="LatestRecommendations"
>
<div
className="LatestRecommendations__container"
>
<h4
className="LatestRecommendations__title"
>
<i
className="iconfont icon-flashlight_fill LatestRecommendations__icon"
/>
<span>
Latest Recommendations
</span>
</h4>
<div
className="LatestRecommendations__divider"
/>
<div
className="Recommendation"
>
<div
className="Recommendation__text"
>
<div
className="Recommendation__title"
>
<a
href="/@ekitcho/hello"
onClick={[Function]}
>
<div
className=""
dangerouslySetInnerHTML={
Object {
"__html": "Its a brave new world of steemit out there. You must try it out
",
}
}
/>
</a>
</div>
<div
className="Recommendation__footer"
>
<a
className="Recommendation__author"
href="/@ekitcho"
onClick={[Function]}
>
ekitcho
</a>
<span
className="Recommendation__bullet"
/>
<span
className="Recommendation__date"
>
<span>
29 days ago
</span>
</span>
</div>
</div>
</div>
<div
className="Recommendation"
>
<div
className="Recommendation__text"
>
<div
className="Recommendation__title"
>
<a
href="/@blacktivity/hello"
onClick={[Function]}
>
<div
className=""
dangerouslySetInnerHTML={
Object {
"__html": "My Momma always said to me that people with gaps in their teeth had something t…",
}
}
/>
</a>
</div>
<div
className="Recommendation__footer"
>
<a
className="Recommendation__author"
href="/@blacktivity"
onClick={[Function]}
>
blacktivity
</a>
<span
className="Recommendation__bullet"
/>
<span
className="Recommendation__date"
>
<span>
29 days ago
</span>
</span>
</div>
</div>
</div>
<div
className="Recommendation"
>
<div
className="Recommendation__text"
>
<div
className="Recommendation__title"
>
<a
href="/@pooldarbashi/hello"
onClick={[Function]}
>
<div
className=""
dangerouslySetInnerHTML={
Object {
"__html": "Ethereum price continued to trade lower against the US Dollar and Bitcoin, and …",
}
}
/>
</a>
</div>
<div
className="Recommendation__footer"
>
<a
className="Recommendation__author"
href="/@pooldarbashi"
onClick={[Function]}
>
pooldarbashi
</a>
<span
className="Recommendation__bullet"
/>
<span
className="Recommendation__date"
>
<span>
29 days ago
</span>
</span>
</div>
</div>
</div>
<div
className="LatestRecommendations__divider"
/>
<h4
className="LatestRecommendations__more"
>
<a
href="/latest-recommendations"
onClick={[Function]}
>
<span>
See All Recommendations
</span>
</a>
</h4>
</div>
</div>
</div>
`;

exports[`Storyshots Sidebar Start now 1`] = `
<div
style={
Expand Down
30 changes: 0 additions & 30 deletions src/stories/stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import StartNow from '../components/Sidebar/StartNow';
import Topics from '../components/Sidebar/Topics';
import InterestingPeople from '../components/Sidebar/InterestingPeople';
import LatestComments from '../components/Sidebar/LatestComments';
import LatestRecommendations from '../components/Sidebar/LatestRecommendations';
import Topic from '../components/Button/Topic';
import Follow from '../components/Button/Follow';
import Action from '../components/Button/Action';
Expand Down Expand Up @@ -117,35 +116,6 @@ storiesOf('Sidebar', module)
},
]}
/>),
)
.add('Latest Recommendations', () =>
(<LatestRecommendations
posts={[
{
id: '100a',
title: 'Its a brave new world of steemit out there. You must try it out',
author: 'ekitcho',
created: '2017-06-07T17:26:21',
permlink: 'hello',
},
{
id: '100b',
title:
'My Momma always said to me that people with gaps in their teeth had something to hide',
author: 'blacktivity',
created: '2017-06-07T18:12:13',
permlink: 'hello',
},
{
id: '100c',
title:
'Ethereum price continued to trade lower against the US Dollar and Bitcoin, and it looks like ETH/USD may continue to face sellers as long as it is below $300',
author: 'pooldarbashi',
created: '2017-06-07T17:44:11',
permlink: 'hello',
},
]}
/>),
);

storiesOf('Story', module)
Expand Down

0 comments on commit 188559b

Please sign in to comment.