Skip to content

Commit d4f4582

Browse files
committed
Update icons in AddCategoryComponent and styling
in TaskCategoryList
1 parent b5ec228 commit d4f4582

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/ui/AddCategory.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { IconButton, Button, FormControl, FormLabel, Input, ButtonGroup, Box, Popover, useDisclosure, PopoverTrigger, PopoverContent, FocusLock, PopoverArrow, PopoverCloseButton, Stack} from '@chakra-ui/react'
2-
import { CheckIcon } from '@chakra-ui/icons'
2+
import { AddIcon } from '@chakra-ui/icons'
33
import { useRef } from 'react'
44
import { useRecoilValue , useSetRecoilState} from 'recoil'
55
import { taskObjectSelector, taskCategoriesListState } from '../../config/states'
@@ -64,7 +64,7 @@ export default function AddCategoryComponent() {
6464
colorScheme='teal'
6565
aria-label='Done'
6666
size='sm'
67-
icon={<CheckIcon />}
67+
icon={<AddIcon />}
6868
/>
6969
</PopoverTrigger>
7070
<PopoverContent p={5}>

src/components/ui/TaskCategoryList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ export default function TaskCategoryList() {
77
const setActiveTaskCategory = useSetRecoilState<number>(activeTaskCategoryState)
88
const taskCategoryList = useRecoilValue<taskCategory[]>(taskCategoriesListSelector)
99
return (
10-
<TabList w="100%" overflowX="auto">
10+
<TabList w="100%" overflowX="auto" gap={2} px={2} py={1} borderRadius="md" scrollBehavior="smooth" >
1111
{taskCategoryList.map((taskCategory, key) => (
12-
<Tab key={key} onClick={() => setActiveTaskCategory(key)}>
12+
<Tab key={key} onClick={() => setActiveTaskCategory(key)} px={2} minW="100px" textAlign="center" py={0} >
1313
{taskCategory?.name}
1414
</Tab>
1515
))}

0 commit comments

Comments
 (0)