From ce5a5521233b0f81dbfd3e091616c40655e4428e Mon Sep 17 00:00:00 2001 From: Jeff Sieu Date: Sun, 6 Nov 2022 01:40:48 +0800 Subject: [PATCH] [questions][ui] add lists mobile view --- apps/portal/src/pages/questions/browse.tsx | 6 +- apps/portal/src/pages/questions/lists.tsx | 70 ++++++++++++++++------ 2 files changed, 53 insertions(+), 23 deletions(-) diff --git a/apps/portal/src/pages/questions/browse.tsx b/apps/portal/src/pages/questions/browse.tsx index e2d42770..25525a7a 100644 --- a/apps/portal/src/pages/questions/browse.tsx +++ b/apps/portal/src/pages/questions/browse.tsx @@ -493,11 +493,7 @@ export default function QuestionsBrowsePage() { Home - {APP_TITLE} -
+
diff --git a/apps/portal/src/pages/questions/lists.tsx b/apps/portal/src/pages/questions/lists.tsx index e64aa41c..5be1257c 100644 --- a/apps/portal/src/pages/questions/lists.tsx +++ b/apps/portal/src/pages/questions/lists.tsx @@ -5,14 +5,15 @@ import { EllipsisVerticalIcon, NoSymbolIcon, PlusIcon, + TrashIcon, } from '@heroicons/react/24/outline'; +import { Button, Select } from '@tih/ui'; import QuestionListCard from '~/components/questions/card/question/QuestionListCard'; import type { CreateListFormData } from '~/components/questions/CreateListDialog'; import CreateListDialog from '~/components/questions/CreateListDialog'; import DeleteListDialog from '~/components/questions/DeleteListDialog'; -import { Button } from '~/../../../packages/ui/dist'; import { APP_TITLE } from '~/utils/questions/constants'; import createSlug from '~/utils/questions/createSlug'; import { @@ -82,7 +83,7 @@ export default function ListPage() { selectedListIndex === index ? 'bg-primary-100' : '' }`}>
+
{createButton}
{listOptions}
+
+
+