Remove notification box about public/hidden bets (#544)

This commit is contained in:
Marshall Polaris 2022-06-20 16:29:46 -07:00 committed by GitHub
parent d572efad1a
commit 5add7eea49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,6 @@ import { BetsList } from './bets-list'
import { Bet } from 'common/bet' import { Bet } from 'common/bet'
import { getUserBets } from 'web/lib/firebase/bets' import { getUserBets } from 'web/lib/firebase/bets'
import { FollowersButton, FollowingButton } from './following-button' import { FollowersButton, FollowingButton } from './following-button'
import { AlertBox } from './alert-box'
import { useFollows } from 'web/hooks/use-follows' import { useFollows } from 'web/hooks/use-follows'
import { FollowButton } from './follow-button' import { FollowButton } from './follow-button'
@ -260,27 +259,10 @@ export function UserPage(props: {
title: 'Bets', title: 'Bets',
content: ( content: (
<div> <div>
{isCurrentUser && (
<AlertBox
title="Bets after 2022-06-01 are publicly visible by default."
text="Note that all historical bets are also publicly accessible through the API.
See: https://manifold.markets/Austin/will-all-bets-on-manifold-be-public"
/>
)}
<BetsList <BetsList
user={user} user={user}
hideBetsBefore={isCurrentUser ? 0 : JUNE_1_2022} hideBetsBefore={isCurrentUser ? 0 : JUNE_1_2022}
/> />
{!isCurrentUser && (
<>
<Spacer h={4} />
<AlertBox
title="Bets before 2022-06-01 are hidden by default."
text="Note that all historical bets are also publicly accessible through the API.
See: https://manifold.markets/Austin/will-all-bets-on-manifold-be-public"
/>
</>
)}
</div> </div>
), ),
tabIcon: ( tabIcon: (