diff --git a/web/components/create-question-button.tsx b/web/components/create-question-button.tsx index a9161ac6..f2371d11 100644 --- a/web/components/create-question-button.tsx +++ b/web/components/create-question-button.tsx @@ -5,6 +5,7 @@ import React from 'react' export const createButtonStyle = 'border-w-0 mx-auto mt-4 -ml-1 w-full rounded-md bg-gradient-to-r py-2.5 text-base font-semibold text-white shadow-sm lg:-ml-0 h-11' + export const CreateQuestionButton = (props: { user: User | null | undefined overrideText?: string diff --git a/web/pages/group/[...slugs]/index.tsx b/web/pages/group/[...slugs]/index.tsx index 4039fe17..7cce843e 100644 --- a/web/pages/group/[...slugs]/index.tsx +++ b/web/pages/group/[...slugs]/index.tsx @@ -1,4 +1,5 @@ import { take, sortBy, debounce } from 'lodash' +import PlusSmIcon from '@heroicons/react/solid/PlusSmIcon' import { Group, GROUP_CHAT_SLUG } from 'common/group' import { Page } from 'web/components/page' @@ -32,10 +33,7 @@ import { SEO } from 'web/components/SEO' import { Linkify } from 'web/components/linkify' import { fromPropz, usePropz } from 'web/hooks/use-propz' import { Tabs } from 'web/components/layout/tabs' -import { - createButtonStyle, - CreateQuestionButton, -} from 'web/components/create-question-button' +import { CreateQuestionButton } from 'web/components/create-question-button' import React, { useEffect, useState } from 'react' import { GroupChat } from 'web/components/groups/group-chat' import { LoadingIndicator } from 'web/components/loading-indicator' @@ -265,9 +263,7 @@ export default function GroupPage(props: {
{group.name}
@@ -275,7 +271,7 @@ export default function GroupPage(props: {
-
+
-
- -
- - + ) : group.anyoneCanJoin ? ( @@ -559,7 +534,7 @@ function GroupLeaderboards(props: { } function AddContractButton(props: { group: Group; user: User }) { - const { group } = props + const { group, user } = props const [open, setOpen] = useState(false) async function addContractToCurrentGroup(contract: Contract) { @@ -569,16 +544,39 @@ function AddContractButton(props: { group: Group; user: User }) { return ( <> +
+ +
+ -
- Add a question to your group -
-
+ +
+ Add a question to your group +
+ + + + +
or
+ + + +
-
- - -
) }