Skip to content

Commit

Permalink
fix: postpone button on today's todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten Koch committed Dec 20, 2024
1 parent ac87bef commit 24d9f01
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions components/planning/day/postpone-btn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,21 @@ const PostPoneBtn: FC<PostPoneBtnProps> = ({
const iconSize = "w-4 h-4";

return isPostponing ? (
<Loader2 className={cn(iconSize, "text-muted-foreground animate-spin")} />
<div className="w-28 flex flex-row gap-1 text-muted-foreground">
<Loader2 className={cn(iconSize, "animate-spin")} />
<span className="text-sm -translate-y-0.5">Saving…</span>
</div>
) : (
<div className="w-28 cursor-pointer hover:children:hidden group">
<div className="flex flex-row gap-1 text-muted-foreground group-hover:hidden">
<CalenderIcon className={iconSize} />
<span className="text-sm -translate-y-0.5">{label}</span>
</div>
<div className="flex-row gap-1 text-primary hidden group-hover:flex">
<CalenderIconHover
className={iconSize}
onClick={handlePostPone(status !== "POSTPONED")}
/>
<div
className="flex-row gap-1 text-primary hidden group-hover:flex"
onClick={handlePostPone(status !== "POSTPONED")}
>
<CalenderIconHover className={iconSize} />
<span className="text-sm -translate-y-0.5">{label}</span>
</div>
</div>
Expand Down

0 comments on commit 24d9f01

Please sign in to comment.