From 93b29000152ed4434853252673f4459e36f69ad8 Mon Sep 17 00:00:00 2001 From: Ian Philips Date: Thu, 7 Jul 2022 06:53:14 -0600 Subject: [PATCH] Groups UX on mobile --- web/components/create-question-button.tsx | 2 + web/components/groups/group-chat.tsx | 2 +- web/components/layout/tabs.tsx | 5 ++- web/pages/group/[...slugs]/index.tsx | 51 ++++++++++++++++++----- 4 files changed, 46 insertions(+), 14 deletions(-) diff --git a/web/components/create-question-button.tsx b/web/components/create-question-button.tsx index a9161ac6..b8b5dcf3 100644 --- a/web/components/create-question-button.tsx +++ b/web/components/create-question-button.tsx @@ -2,6 +2,8 @@ import Link from 'next/link' import clsx from 'clsx' import { firebaseLogin, User } from 'web/lib/firebase/users' import React from 'react' +import { PlusIcon } from '@heroicons/react/outline' +import { Row } from 'web/components/layout/row' 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' diff --git a/web/components/groups/group-chat.tsx b/web/components/groups/group-chat.tsx index 13028313..1298065d 100644 --- a/web/components/groups/group-chat.tsx +++ b/web/components/groups/group-chat.tsx @@ -97,7 +97,7 @@ export function GroupChat(props: { } return ( - + void + className?: string }) { - const { tabs, defaultIndex, labelClassName, onClick } = props + const { tabs, defaultIndex, labelClassName, onClick, className } = props const [activeIndex, setActiveIndex] = useState(defaultIndex ?? 0) const activeTab = tabs[activeIndex] as Tab | undefined // can be undefined in weird case return ( <> -
+