mirror of
https://github.com/urosran/cally.git
synced 2025-11-27 17:04:55 +00:00
ui fixes
This commit is contained in:
@ -17,8 +17,13 @@ import AddChoreDialog from "@/components/pages/todos/AddChoreDialog";
|
||||
import { useGetFamilyMembers } from "@/hooks/firebase/useGetFamilyMembers";
|
||||
import RepeatIcon from "@/assets/svgs/RepeatIcon";
|
||||
import { ProfileType, useAuthContext } from "@/contexts/AuthContext";
|
||||
import { format } from "date-fns";
|
||||
|
||||
const ToDoItem = (props: { item: IToDo; isSettings?: boolean }) => {
|
||||
const ToDoItem = (props: {
|
||||
item: IToDo;
|
||||
isSettings?: boolean;
|
||||
is7Days?: boolean;
|
||||
}) => {
|
||||
const { updateToDo } = useToDosContext();
|
||||
const { data: members } = useGetFamilyMembers();
|
||||
const { profileData } = useAuthContext();
|
||||
@ -55,6 +60,7 @@ const ToDoItem = (props: { item: IToDo; isSettings?: boolean }) => {
|
||||
|
||||
return (
|
||||
<View
|
||||
key={props.item.id}
|
||||
centerV
|
||||
paddingV-10
|
||||
paddingH-13
|
||||
@ -154,6 +160,9 @@ const ToDoItem = (props: { item: IToDo; isSettings?: boolean }) => {
|
||||
return props.item.repeatType;
|
||||
}
|
||||
})()}
|
||||
{props.item.date &&
|
||||
props.is7Days &&
|
||||
" / " + format(props.item.date, "EEEE")}
|
||||
</Text>
|
||||
</View>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user