Skip to content

Commit

Permalink
chore: npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
gohan5858 committed Oct 27, 2024
1 parent 03262d6 commit 7407af8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions task_yell/src/app/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,15 @@ export default function Home() {
>("partial");
const [searchTerm, setSearchTerm] = useState("");
const [editingStickyNote, setEditingStickyNote] = useState<StickyNote | null>(
null
null,
);
const [isDarkMode, setIsDarkMode] = useState(false);
const [isEventModalOpen, setIsEventModalOpen] = useState(false);
const [draggedStickyNote, setDraggedStickyNote] = useState<StickyNote | null>(
null
null,
);
const [removedStickyNote, setRemovedStickyNote] = useState<StickyNote | null>(
null
null,
);
const dragControls = useDragControls();
const modalRef = useRef<HTMLDivElement>(null);
Expand All @@ -312,7 +312,7 @@ export default function Home() {

const updateStickyNote = (updatedNote: StickyNote) => {
const updatedNotes = stickyNotes.map((note) =>
note.id === updatedNote.id ? updatedNote : note
note.id === updatedNote.id ? updatedNote : note,
);
setStickyNotes(updatedNotes);
setEditingStickyNote(null);
Expand Down Expand Up @@ -378,8 +378,8 @@ export default function Home() {
const weekDays = days.slice(weekIndex * 7, (weekIndex + 1) * 7);
const maxEventsInWeek = Math.max(
...weekDays.map(
(day) => getTodoCountForDay(day) + getEventCountForDay(day)
)
(day) => getTodoCountForDay(day) + getEventCountForDay(day),
),
);
const weekHeight =
maxEventsInWeek > 2 ? Math.min(maxEventsInWeek * 20, 100) : "auto";
Expand Down Expand Up @@ -417,20 +417,20 @@ export default function Home() {
e.preventDefault();
e.currentTarget.classList.add(
"bg-blue-100",
"dark:bg-blue-800"
"dark:bg-blue-800",
);
}}
onDragLeave={(e) => {
e.currentTarget.classList.remove(
"bg-blue-100",
"dark:bg-blue-800"
"dark:bg-blue-800",
);
}}
onDrop={(e) => {
e.preventDefault();
e.currentTarget.classList.remove(
"bg-blue-100",
"dark:bg-blue-800"
"dark:bg-blue-800",
);
if (draggedStickyNote) {
handleDateSelect(day);
Expand Down Expand Up @@ -524,7 +524,7 @@ export default function Home() {

const filteredStickyNotes = useMemo(() => {
return stickyNotes.filter((note) =>
note.title.toLowerCase().includes(searchTerm.toLowerCase())
note.title.toLowerCase().includes(searchTerm.toLowerCase()),
);
}, [stickyNotes, searchTerm]);

Expand Down

0 comments on commit 7407af8

Please sign in to comment.