diff options
| author | crupest <crupest@outlook.com> | 2021-01-09 01:07:35 +0800 |
|---|---|---|
| committer | crupest <crupest@outlook.com> | 2021-01-09 01:07:35 +0800 |
| commit | 3da3793282a2bb50f7f3e39fbe08efee7582743b (patch) | |
| tree | afc2952ccbb8baa05980ade935648dcc3b560845 /FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx | |
| parent | 6d30c089c02591ce2f57cf22fe0c41c17c62fbc3 (diff) | |
| download | timeline-3da3793282a2bb50f7f3e39fbe08efee7582743b.tar.gz timeline-3da3793282a2bb50f7f3e39fbe08efee7582743b.tar.bz2 timeline-3da3793282a2bb50f7f3e39fbe08efee7582743b.zip | |
...
Diffstat (limited to 'FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx')
| -rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx b/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx index ece1942f..b2b349bc 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelineCardTemplate.tsx @@ -56,13 +56,19 @@ function TimelineCardTemplate({ <div className="text-right mt-2"> {onHighlight != null ? ( <i - className="bi-star icon-button text-yellow mr-3" + className={clsx( + timeline.isHighlight ? "bi-star-fill" : "bi-star", + "icon-button text-yellow mr-3" + )} onClick={onHighlight} /> ) : null} {onBookmark != null ? ( <i - className="bi-bookmark icon-button text-yellow mr-3" + className={clsx( + timeline.isBookmark ? "bi-bookmark-fill" : "bi-bookmark", + "icon-button text-yellow mr-3" + )} onClick={onBookmark} /> ) : null} |
