From 67007c589748144f09980a0c3fc418117999fb39 Mon Sep 17 00:00:00 2001 From: jahooma Date: Tue, 4 Jan 2022 16:47:56 -0600 Subject: [PATCH] Make tweet button smaller --- web/components/contract-card.tsx | 4 +++- web/components/contract-overview.tsx | 5 +---- web/components/tweet-button.tsx | 15 ++++++++++----- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/web/components/contract-card.tsx b/web/components/contract-card.tsx index 70e5df9f..63eaf8aa 100644 --- a/web/components/contract-card.tsx +++ b/web/components/contract-card.tsx @@ -114,7 +114,9 @@ export function ContractDetails(props: {
{formatMoney(truePool)} pool
- {inlineTags &&
} + {inlineTags && tags.length > 0 && ( +
+ )} {tags.map((tag) => ( diff --git a/web/components/contract-overview.tsx b/web/components/contract-overview.tsx index b3703dd3..a3b1077e 100644 --- a/web/components/contract-overview.tsx +++ b/web/components/contract-overview.tsx @@ -68,6 +68,7 @@ export const ContractOverview = (props: { /> + - - - - diff --git a/web/components/tweet-button.tsx b/web/components/tweet-button.tsx index b3e69150..2fd4adcd 100644 --- a/web/components/tweet-button.tsx +++ b/web/components/tweet-button.tsx @@ -1,9 +1,14 @@ -export function TweetButton(props: { tweetText?: string }) { - const { tweetText } = props +import clsx from 'clsx' + +export function TweetButton(props: { className?: string; tweetText?: string }) { + const { tweetText, className } = props return ( Tweet