Skip to content

Commit

Permalink
removing clg
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavweber committed Aug 26, 2024
1 parent 8cfa135 commit 75d14ae
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,6 @@ export const MIN_BOX_SIZE = 40;
export const sizeEventBox = <T extends GenericEvent>(event: T, hour: Date) => {
const eventStartTime = new Date(event.startTime);
const eventEndTime = new Date(event.endTime);
console.log(eventStartTime, eventEndTime, "the event time!")
console.log(hour, "the given hour!")

const boxSize =
Math.floor(
Expand All @@ -205,7 +203,5 @@ export const sizeEventBox = <T extends GenericEvent>(event: T, hour: Date) => {
differenceInMinutes(hour, eventStartTime) * HOUR_TO_DECIMAL > 100
? 0
: differenceInMinutes(eventStartTime, hour) * HOUR_TO_DECIMAL;
console.log("box position claculation:", differenceInMinutes(eventStartTime, hour), hour, eventStartTime)
console.log({ boxPosition: boxPosition, boxSize: boxSize }, "the box size!")
return { boxPosition: boxPosition, boxSize: boxSize };
};

0 comments on commit 75d14ae

Please sign in to comment.