mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-12-03 13:34:28 +00:00
Alter icon fill
This commit is contained in:
parent
873794eee5
commit
998b000089
1 changed files with 6 additions and 5 deletions
|
@ -16,11 +16,11 @@ type TaskIconProps = {
|
|||
}
|
||||
|
||||
const STATUS_TO_PREFIX: {[t in TaskSimplifiedStatus]: IconPack} = {
|
||||
[TaskSimplifiedStatus.Unfinished]: fal,
|
||||
[TaskSimplifiedStatus.InProgress]: far,
|
||||
[TaskSimplifiedStatus.Complete]: fas,
|
||||
[TaskSimplifiedStatus.Journaled]: fas,
|
||||
[TaskSimplifiedStatus.NonExistent]: far,
|
||||
[TaskSimplifiedStatus.Unfinished]: fas,
|
||||
[TaskSimplifiedStatus.InProgress]: fas,
|
||||
[TaskSimplifiedStatus.Complete]: fal,
|
||||
[TaskSimplifiedStatus.Journaled]: far,
|
||||
[TaskSimplifiedStatus.NonExistent]: fas,
|
||||
}
|
||||
|
||||
export function TaskIconComponent({className, title, icon, status, onInteract}: TaskIconProps) {
|
||||
|
@ -31,6 +31,7 @@ export function TaskIconComponent({className, title, icon, status, onInteract}:
|
|||
className={cn({
|
||||
[style.taskIconComponent]: true,
|
||||
[style.taskIconComponentClickable]: clickable,
|
||||
"fade": status === TaskSimplifiedStatus.Complete,
|
||||
}, className)}
|
||||
type={"button"}
|
||||
title={title}
|
||||
|
|
Loading…
Reference in a new issue