-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve: add datepicker timer (#141)
- Loading branch information
Showing
6 changed files
with
170 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 17 additions & 13 deletions
30
packages/ui-app/app/[orgID]/project/[projectId]/calendar/CalTaskInMonth.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
import MemberAvatar from "@/components/MemberAvatar"; | ||
import MemberAvatar from '@/components/MemberAvatar' | ||
|
||
export default function CalTaskInMonth({ | ||
color, | ||
time, | ||
title, | ||
assigneeId | ||
}: { | ||
color: string, | ||
title: string, | ||
color: string | ||
time: string | ||
title: string | ||
assigneeId: string | ||
}) { | ||
|
||
return <> | ||
<div | ||
className='absolute left-0 top-0 h-full w-[3px]' | ||
style={{ backgroundColor: color }}></div> | ||
<div className="flex items-center justify-between gap-1" title={title}> | ||
<span className="truncate dark:text-gray-400">{title}</span> | ||
<MemberAvatar noName={true} uid={assigneeId} /> | ||
</div> | ||
</> | ||
return ( | ||
<> | ||
<div | ||
className="absolute left-0 top-0 h-full w-[3px]" | ||
style={{ backgroundColor: color }}></div> | ||
<div className="flex items-center justify-between gap-1" title={title}> | ||
<span className="truncate dark:text-gray-400">{title}</span> | ||
<MemberAvatar noName={true} uid={assigneeId} /> | ||
</div> | ||
<div className="text-xs text-gray-400 dark:text-gray-500">{time}</div> | ||
</> | ||
) | ||
} |
Oops, something went wrong.