Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
khoirxz committed Sep 22, 2022
1 parent ff5b6aa commit 48d2616
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ContextContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const DataListProvider = ({ children }) => {
const [todo, setTodo] = useState({
title: "",
description: "",
onCreate: new Date().toISOString(),
onCreate: "",
onComplete: false,
});

Expand Down
14 changes: 12 additions & 2 deletions src/components/Molecules/ListItem/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,21 @@ const ListItem = ({ id, title, description, onCreate, onOpen, onComplete }) => {
<Box my="10">
<Flex flexDir="row" justifyContent="space-between" cursor="pointer">
<Box width="full" opacity={onComplete ? "0.7" : "1"}>
<Heading fontSize="20px" fontWeight="semibold" mb="1">
<Heading
fontSize="20px"
fontWeight="semibold"
mb="1"
textDecor={onComplete ? "line-through" : "none"}
>
{title}
</Heading>

<Text fontFamily="12px" fontWeight="thin" color="gray.500">
<Text
fontFamily="12px"
fontWeight="thin"
color="gray.500"
textDecor={onComplete ? "line-through" : "none"}
>
{description}
</Text>
<Flex mt="2">
Expand Down

0 comments on commit 48d2616

Please sign in to comment.