Skip to content

Commit

Permalink
Remove weekly view code form timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-lednev committed Aug 7, 2023
1 parent f5a285f commit 0f1dc83
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/ui/components/timeline.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import Needle from "./needle.svelte";
import TaskContainer from "./task-container.svelte";
import Controls from "./controls.svelte";
import { startHour, tasks, weeklyTasks } from "../../store/timeline-store";
import { startHour, tasks } from "../../store/timeline-store";
let userHoversOverScroller = false;
Expand All @@ -29,14 +29,10 @@
>
<div class="scale-with-days">
<Ruler {visibleHours} />
{#each $weeklyTasks as tasksForDay}
<Column {visibleHours}>
{#if tasksForDay.isToday}
<Needle scrollBlockedByUser={userHoversOverScroller} />
{/if}
<TaskContainer tasks={tasksForDay.tasks} />
</Column>
{/each}
<Column {visibleHours}>
<Needle scrollBlockedByUser={userHoversOverScroller} />
<TaskContainer tasks={$tasks} />
</Column>
</div>
</div>

Expand Down

0 comments on commit 0f1dc83

Please sign in to comment.