diff --git a/web/components/alert-box.tsx b/web/components/alert-box.tsx
index a8306583..b908b180 100644
--- a/web/components/alert-box.tsx
+++ b/web/components/alert-box.tsx
@@ -1,24 +1,26 @@
import { ExclamationIcon } from '@heroicons/react/solid'
+import { Col } from './layout/col'
+import { Row } from './layout/row'
import { Linkify } from './linkify'
export function AlertBox(props: { title: string; text: string }) {
const { title, text } = props
return (
-
-
+
)
}
diff --git a/web/components/bet-panel.tsx b/web/components/bet-panel.tsx
index 7a9b77e4..4d27918b 100644
--- a/web/components/bet-panel.tsx
+++ b/web/components/bet-panel.tsx
@@ -43,6 +43,7 @@ import { LimitBets } from './limit-bets'
import { PillButton } from './buttons/pill-button'
import { YesNoSelector } from './yes-no-selector'
import { PlayMoneyDisclaimer } from './play-money-disclaimer'
+import { AlertBox } from './alert-box'
export function BetPanel(props: {
contract: CPMMBinaryContract | PseudoNumericContract
@@ -264,6 +265,8 @@ function BuyPanel(props: {
const format = getFormattedMappedValue(contract)
+ const bankrollFraction = (betAmount ?? 0) / (user?.balance ?? 1e9)
+
return (
@@ -287,6 +290,22 @@ function BuyPanel(props: {
disabled={isSubmitting}
inputRef={inputRef}
/>
+
+ {(betAmount ?? 0) > 10 &&
+ bankrollFraction >= 0.5 &&
+ bankrollFraction <= 1 ? (
+
+ ) : (
+ ''
+ )}
+