mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 12:12:54 +01:00
web: make disabled status of reminders more apparent
This commit is contained in:
committed by
Abdullah Atta
parent
b65a372192
commit
352639da24
@@ -60,7 +60,8 @@ function ListItem(props) {
|
||||
background: "background"
|
||||
},
|
||||
isFocused,
|
||||
isCompact
|
||||
isCompact,
|
||||
isDisabled
|
||||
} = props;
|
||||
|
||||
const listItemRef = useRef();
|
||||
@@ -117,6 +118,7 @@ function ListItem(props) {
|
||||
pl={1}
|
||||
tabIndex={-1}
|
||||
sx={{
|
||||
opacity: isDisabled ? 0.7 : 1,
|
||||
height: "inherit",
|
||||
cursor: "pointer",
|
||||
position: "relative",
|
||||
|
||||
@@ -53,16 +53,15 @@ function Reminder({ item, index }: { item: ReminderType; index: number }) {
|
||||
item={reminder}
|
||||
title={reminder.title}
|
||||
body={reminder.description}
|
||||
isDisabled={reminder.disabled}
|
||||
footer={
|
||||
<Flex
|
||||
sx={{
|
||||
alignItems: "center"
|
||||
}}
|
||||
>
|
||||
{reminder.disabled ? (
|
||||
<Icon.ReminderOff size={16} color="fontTertiary" sx={{ mr: 1 }} />
|
||||
) : (
|
||||
<PriorityIcon size={16} color="fontTertiary" sx={{ mr: 1 }} />
|
||||
{reminder.disabled ? null : (
|
||||
<PriorityIcon size={14} color="fontTertiary" sx={{ mr: 1 }} />
|
||||
)}
|
||||
{reminder.mode === "repeat" && reminder.recurringMode && (
|
||||
<IconTag
|
||||
@@ -70,7 +69,15 @@ function Reminder({ item, index }: { item: ReminderType; index: number }) {
|
||||
text={RECURRING_MODE_MAP[reminder.recurringMode]}
|
||||
/>
|
||||
)}
|
||||
<IconTag icon={Icon.Clock} text={formatReminderTime(reminder)} />
|
||||
{reminder.disabled ? (
|
||||
<IconTag
|
||||
icon={Icon.ReminderOff}
|
||||
text={"Disabled"}
|
||||
styles={{ icon: { color: "error" } }}
|
||||
/>
|
||||
) : (
|
||||
<IconTag icon={Icon.Clock} text={formatReminderTime(reminder)} />
|
||||
)}
|
||||
</Flex>
|
||||
}
|
||||
index={index}
|
||||
|
||||
Reference in New Issue
Block a user