From d922900bda2e7ea804d8a3daa28cc828b15f9278 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Wed, 21 Sep 2022 18:25:54 -0400 Subject: [PATCH] Increase tip size to M$10 --- web/components/tipper.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/web/components/tipper.tsx b/web/components/tipper.tsx index 7aef6189..46a988f6 100644 --- a/web/components/tipper.tsx +++ b/web/components/tipper.tsx @@ -16,6 +16,8 @@ import { track } from 'web/lib/service/analytics' import { Row } from './layout/row' import { Tooltip } from './tooltip' +const TIP_SIZE = 10 + export function Tipper(prop: { comment: Comment; tips: CommentTips }) { const { comment, tips } = prop @@ -82,9 +84,12 @@ export function Tipper(prop: { comment: Comment; tips: CommentTips }) { const canUp = me && me.id !== comment.userId && me.balance >= localTip + 5 return ( - addTip(-5) : undefined} /> + addTip(-TIP_SIZE) : undefined} /> {Math.floor(total)} - addTip(+5) : undefined} value={localTip} /> + addTip(+TIP_SIZE) : undefined} + value={localTip} + /> {localTip === 0 ? ( '' ) : ( @@ -107,7 +112,7 @@ function DownTip(props: { onClick?: () => void }) {