From 494303883ae44c3e3a250a8f92ee416ef7f2b2d8 Mon Sep 17 00:00:00 2001 From: Danny Skubak Date: Wed, 30 Oct 2019 22:01:38 -0400 Subject: [PATCH] apply margin directly to like & follow (#53) --- frontend/client/components/Follow/index.tsx | 4 +++- frontend/client/components/Like/index.tsx | 5 +++-- frontend/client/components/Proposal/index.less | 4 ---- frontend/client/components/Proposal/index.tsx | 4 ++-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/frontend/client/components/Follow/index.tsx b/frontend/client/components/Follow/index.tsx index ed0db2a6..9f8d93cb 100644 --- a/frontend/client/components/Follow/index.tsx +++ b/frontend/client/components/Follow/index.tsx @@ -10,6 +10,7 @@ import './index.less'; interface OwnProps { proposal: ProposalDetail; + style?: React.CSSProperties; } interface StateProps { @@ -30,10 +31,11 @@ type State = typeof STATE; class Follow extends React.Component { state: State = { ...STATE }; render() { + const { style } = this.props; const { authedFollows, followersCount } = this.props.proposal; const { loading } = this.state; return ( - + { render() { const { likesCount, authedLiked } = this.deriveInfo(); - const { proposal, rfp, comment } = this.props; + const { proposal, rfp, comment, style } = this.props; const { loading } = this.state; const zoom = comment ? 0.8 : 1; const shouldShowLikeText = !!proposal || !!rfp; return ( - + * + * { - margin-left: 0.5rem; - } } } diff --git a/frontend/client/components/Proposal/index.tsx b/frontend/client/components/Proposal/index.tsx index 17a146b9..1fbfbd67 100644 --- a/frontend/client/components/Proposal/index.tsx +++ b/frontend/client/components/Proposal/index.tsx @@ -206,8 +206,8 @@ export class ProposalDetail extends React.Component { )} - - + + )}