Label Initial Prompt

This commit is contained in:
AbdBarho
2023-01-07 17:24:43 +01:00
parent 4ecdc57621
commit 53814d77ab
9 changed files with 210 additions and 25 deletions
@@ -3,7 +3,7 @@ import Link from "next/link";
import { TaskCategory, TaskTypes } from "../Tasks/TaskTypes";
const displayTaskCategories = [TaskCategory.Create, TaskCategory.Evaluate];
const displayTaskCategories = [TaskCategory.Create, TaskCategory.Evaluate, TaskCategory.Label];
export const TaskOption = () => {
const backgroundColor = useColorModeValue("white", "gray.700");
@@ -12,9 +12,9 @@ export const TaskOption = () => {
<Box className="flex flex-col gap-14" fontFamily="inter">
{displayTaskCategories.map((category, categoryIndex) => (
<div key={categoryIndex}>
<Text className="text-2xl font-bold pb-4">{TaskCategory[category]}</Text>
<Text className="text-2xl font-bold pb-4">{category}</Text>
<SimpleGrid columns={[1, 2, 2, 3, 4]} gap={4}>
{TaskTypes.filter((task) => task.category == category).map((item, itemIndex) => (
{TaskTypes.filter((task) => task.category === category).map((item, itemIndex) => (
<Link key={itemIndex} href={item.pathname}>
<GridItem
bg={backgroundColor}