We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb460a8 commit 559b42dCopy full SHA for 559b42d
src/components/habit/card.tsx
@@ -57,7 +57,7 @@ export const HabitCard: React.FC = () => {
57
58
if (!matchActiveTags(habit, tags.active)) return null
59
60
- const extraProps = isReordering ? { ref: setNodeRef, style, ...attributes } : undefined
+ const extraProps = { ref: setNodeRef, style, ...attributes }
61
62
return (
63
<div
@@ -108,7 +108,9 @@ export const HabitCard: React.FC = () => {
108
</div>
109
</LinkWrapper>
110
111
- {!isReordering && (
+ {isReordering ? (
112
+ <HabitIcon size={20} className="w-6 touch-none" {...listeners} />
113
+ ) : (
114
<div className="ml-auto flex items-center gap-1 overflow-hidden">
115
<CompletionButtons max={2} />
116
0 commit comments