diff --git a/web/components/button.tsx b/web/components/button.tsx index 51e25ea1..ecd8e1c7 100644 --- a/web/components/button.tsx +++ b/web/components/button.tsx @@ -46,7 +46,6 @@ export function Button(props: { - + ) } diff --git a/web/components/contract/tip-button.tsx b/web/components/contract/tip-button.tsx new file mode 100644 index 00000000..79059195 --- /dev/null +++ b/web/components/contract/tip-button.tsx @@ -0,0 +1,57 @@ +import { HeartIcon } from '@heroicons/react/outline' +import { Button } from 'web/components/button' +import { formatMoney } from 'common/util/format' +import clsx from 'clsx' +import { Col } from 'web/components/layout/col' +import { Tooltip } from '../tooltip' + +export function TipButton(props: { + tipAmount: number + totalTipped: number + onClick: () => void + userTipped: boolean + isCompact?: boolean + disabled?: boolean +}) { + const { tipAmount, totalTipped, userTipped, isCompact, onClick, disabled } = + props + + return ( + + + + ) +} diff --git a/web/components/feed/feed-comments.tsx b/web/components/feed/feed-comments.tsx index 20d124f8..b9387a03 100644 --- a/web/components/feed/feed-comments.tsx +++ b/web/components/feed/feed-comments.tsx @@ -177,10 +177,6 @@ export function FeedComment(props: { smallImage /> - {tips && } - {(contract.openCommentBounties ?? 0) > 0 && ( - - )} {onReplyClick && ( - - ) -} - -function UpTip(props: { onClick?: () => void; value: number }) { - const { onClick, value } = props - const IconKind = value > TIP_SIZE ? ChevronDoubleRightIcon : ChevronRightIcon - return ( - - - - ) -} diff --git a/web/posts/post-comments.tsx b/web/posts/post-comments.tsx index f1d50a29..74fbb300 100644 --- a/web/posts/post-comments.tsx +++ b/web/posts/post-comments.tsx @@ -154,7 +154,6 @@ export function PostComment(props: { smallImage /> - {onReplyClick && (