Remove Categories from /create
This commit is contained in:
parent
20c18b93cc
commit
6307c5a3eb
|
@ -25,7 +25,6 @@ import { useTracking } from 'web/hooks/use-tracking'
|
||||||
import { useWarnUnsavedChanges } from 'web/hooks/use-warn-unsaved-changes'
|
import { useWarnUnsavedChanges } from 'web/hooks/use-warn-unsaved-changes'
|
||||||
import { track } from 'web/lib/service/analytics'
|
import { track } from 'web/lib/service/analytics'
|
||||||
import { GroupSelector } from 'web/components/groups/group-selector'
|
import { GroupSelector } from 'web/components/groups/group-selector'
|
||||||
import { CATEGORIES } from 'common/categories'
|
|
||||||
import { User } from 'common/user'
|
import { User } from 'common/user'
|
||||||
|
|
||||||
type NewQuestionParams = {
|
type NewQuestionParams = {
|
||||||
|
@ -137,7 +136,6 @@ export function NewContract(props: {
|
||||||
undefined
|
undefined
|
||||||
)
|
)
|
||||||
const [showGroupSelector, setShowGroupSelector] = useState(true)
|
const [showGroupSelector, setShowGroupSelector] = useState(true)
|
||||||
const [category, setCategory] = useState<string>('')
|
|
||||||
|
|
||||||
const closeTime = closeDate
|
const closeTime = closeDate
|
||||||
? dayjs(`${closeDate}T${closeHoursMinutes}`).valueOf()
|
? dayjs(`${closeDate}T${closeHoursMinutes}`).valueOf()
|
||||||
|
@ -210,7 +208,6 @@ export function NewContract(props: {
|
||||||
initialValue,
|
initialValue,
|
||||||
isLogScale: (min ?? 0) < 0 ? false : isLogScale,
|
isLogScale: (min ?? 0) < 0 ? false : isLogScale,
|
||||||
groupId: selectedGroup?.id,
|
groupId: selectedGroup?.id,
|
||||||
tags: category ? [category] : undefined,
|
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
track('create market', {
|
track('create market', {
|
||||||
|
@ -352,28 +349,6 @@ export function NewContract(props: {
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="form-control max-w-[265px] items-start">
|
|
||||||
<label className="label gap-2">
|
|
||||||
<span className="mb-1">Category</span>
|
|
||||||
</label>
|
|
||||||
|
|
||||||
<select
|
|
||||||
className={clsx(
|
|
||||||
'select select-bordered w-full text-sm',
|
|
||||||
category === '' ? 'font-normal text-gray-500' : ''
|
|
||||||
)}
|
|
||||||
value={category}
|
|
||||||
onChange={(e) => setCategory(e.currentTarget.value ?? '')}
|
|
||||||
>
|
|
||||||
<option value={''}>None</option>
|
|
||||||
{Object.entries(CATEGORIES).map(([id, name]) => (
|
|
||||||
<option key={id} value={id}>
|
|
||||||
{name}
|
|
||||||
</option>
|
|
||||||
))}
|
|
||||||
</select>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className={'mt-2'}>
|
<div className={'mt-2'}>
|
||||||
<GroupSelector
|
<GroupSelector
|
||||||
selectedGroup={selectedGroup}
|
selectedGroup={selectedGroup}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user