"question" => "market" (controversial!)
This commit is contained in:
parent
80b27fdf6e
commit
cded3f50ff
|
@ -21,7 +21,7 @@ export const CreateQuestionButton = (props: {
|
|||
{user ? (
|
||||
<Link href={`/create${query ? query : ''}`} passHref>
|
||||
<button className={clsx(gradient, createButtonStyle)}>
|
||||
{overrideText ? overrideText : 'Create a question'}
|
||||
{overrideText ? overrideText : 'Create a market'}
|
||||
</button>
|
||||
</Link>
|
||||
) : (
|
||||
|
|
|
@ -24,7 +24,7 @@ export function groupPath(
|
|||
groupSlug: string,
|
||||
subpath?:
|
||||
| 'edit'
|
||||
| 'questions'
|
||||
| 'markets'
|
||||
| 'about'
|
||||
| typeof GROUP_CHAT_SLUG
|
||||
| 'leaderboards'
|
||||
|
|
|
@ -29,6 +29,7 @@ import { User } from 'common/user'
|
|||
import { TextEditor, useTextEditor } from 'web/components/editor'
|
||||
import { Checkbox } from 'web/components/checkbox'
|
||||
import { redirectIfLoggedOut } from 'web/lib/firebase/server-auth'
|
||||
import { Title } from 'web/components/title'
|
||||
|
||||
export const getServerSideProps = redirectIfLoggedOut('/')
|
||||
|
||||
|
@ -64,6 +65,8 @@ export default function Create() {
|
|||
<Page>
|
||||
<div className="mx-auto w-full max-w-2xl">
|
||||
<div className="rounded-lg px-6 py-4 sm:py-0">
|
||||
<Title className="!mt-0" text="Create a market" />
|
||||
|
||||
<form>
|
||||
<div className="form-control w-full">
|
||||
<label className="label">
|
||||
|
|
|
@ -109,7 +109,7 @@ export async function getStaticPaths() {
|
|||
const groupSubpages = [
|
||||
undefined,
|
||||
GROUP_CHAT_SLUG,
|
||||
'questions',
|
||||
'markets',
|
||||
'leaderboards',
|
||||
'about',
|
||||
] as const
|
||||
|
@ -226,9 +226,9 @@ export default function GroupPage(props: {
|
|||
},
|
||||
]),
|
||||
{
|
||||
title: 'Questions',
|
||||
title: 'Markets',
|
||||
content: questionsTab,
|
||||
href: groupPath(group.slug, 'questions'),
|
||||
href: groupPath(group.slug, 'markets'),
|
||||
},
|
||||
{
|
||||
title: 'Leaderboards',
|
||||
|
|
Loading…
Reference in New Issue
Block a user