-
@@ -196,14 +205,46 @@ export function NewContract(props: { question: string; tag?: string }) {
{outcomeType === 'BINARY' && (
-
- Initial probability
-
-
-
+
+ How likely is it to happen?
+ setShowNumInput(!showNumInput)}
+ />
+
+
+
+ {showNumInput && (
+ <>
+
+ setInitialProb(parseInt(e.target.value.substring(0, 2)))
+ }
+ />
+ %
+ >
+ )}
+
)}
@@ -285,18 +326,41 @@ export function NewContract(props: { question: string; tag?: string }) {
- Market close
-
+ Question expires in a:
+
- e.stopPropagation()}
- onChange={(e) => setCloseDate(e.target.value || '')}
- min={Date.now()}
- disabled={isSubmitting}
- value={closeDate}
- />
+
+
+
+ {showCalendar && (
+ e.stopPropagation()}
+ onChange={(e) =>
+ setCloseDate(
+ dayjs(e.target.value).format('YYYY-MM-DDT23:59') || ''
+ )
+ }
+ min={Date.now()}
+ disabled={isSubmitting}
+ value={dayjs(closeDate).format('YYYY-MM-DD')}
+ />
+ )}
@@ -311,7 +375,12 @@ export function NewContract(props: { question: string; tag?: string }) {
)}
{deservesDailyFreeMarket ? (
-
FREE
+
+
+ {formatMoney(ante)}
+ {' '}
+ FREE
+
) : (
{formatMoney(ante)}