Your list is empty.
+You have no added any questions to your list yet.
+diff --git a/apps/portal/src/pages/questions/lists.tsx b/apps/portal/src/pages/questions/lists.tsx index bd0e9898..f64f1014 100644 --- a/apps/portal/src/pages/questions/lists.tsx +++ b/apps/portal/src/pages/questions/lists.tsx @@ -1,43 +1,168 @@ -import { NoSymbolIcon } from '@heroicons/react/24/outline'; +import { useState } from 'react'; +import { Menu } from '@headlessui/react'; +import { + EllipsisVerticalIcon, + NoSymbolIcon, + PlusIcon, +} from '@heroicons/react/24/outline'; import QuestionListCard from '~/components/questions/card/question/QuestionListCard'; +import { Button } from '~/../../../packages/ui/dist'; import { SAMPLE_QUESTION } from '~/utils/questions/constants'; import createSlug from '~/utils/questions/createSlug'; export default function ListPage() { - const questions = [SAMPLE_QUESTION, SAMPLE_QUESTION, SAMPLE_QUESTION]; + const questions = [ + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + SAMPLE_QUESTION, + ]; + const lists = [ + { id: 1, name: 'list 1', questions }, + { id: 2, name: 'list 2', questions }, + { id: 3, name: 'list 3', questions }, + { id: 4, name: 'list 4', questions }, + { id: 5, name: 'list 5', questions }, + ]; + + const [selectedList, setSelectedList] = useState( + (lists ?? []).length > 0 ? lists[0].id : '', + ); + const listOptions = ( + <> +
You have yet to create a list
+Your list is empty.
+You have no added any questions to your list yet.
+