From 9815e7301fa0426347a03e6fbc35c5109c67af45 Mon Sep 17 00:00:00 2001 From: IanPhilips Date: Fri, 30 Sep 2022 19:48:04 +0000 Subject: [PATCH] Auto-prettification --- web/components/contract/bountied-contract-badge.tsx | 10 +++++++--- web/components/contract/contract-tabs.tsx | 4 +--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/web/components/contract/bountied-contract-badge.tsx b/web/components/contract/bountied-contract-badge.tsx index 4b19df4c..fd738895 100644 --- a/web/components/contract/bountied-contract-badge.tsx +++ b/web/components/contract/bountied-contract-badge.tsx @@ -12,15 +12,19 @@ export function BountiedContractBadge() { ) } -export function BountiedContractSmallBadge(props: { contract: Contract, showAmount?: boolean }) { +export function BountiedContractSmallBadge(props: { + contract: Contract + showAmount?: boolean +}) { const { contract, showAmount } = props const { openCommentBounties } = contract if (!openCommentBounties) return
return ( - - {showAmount && formatMoney(openCommentBounties)} Bounty + + + {showAmount && formatMoney(openCommentBounties)} Bounty ) diff --git a/web/components/contract/contract-tabs.tsx b/web/components/contract/contract-tabs.tsx index 6bea13ed..a4287b5c 100644 --- a/web/components/contract/contract-tabs.tsx +++ b/web/components/contract/contract-tabs.tsx @@ -29,9 +29,7 @@ import { Button } from 'web/components/button' import { MINUTE_MS } from 'common/util/time' import { useUser } from 'web/hooks/use-user' import { Tooltip } from 'web/components/tooltip' -import { - BountiedContractSmallBadge, -} from 'web/components/contract/bountied-contract-badge' +import { BountiedContractSmallBadge } from 'web/components/contract/bountied-contract-badge' import { Row } from '../layout/row' export function ContractTabs(props: {