Skip to content

Commit 559b42d

Browse files
committed
added another grip icon for reordering
1 parent eb460a8 commit 559b42d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/habit/card.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const HabitCard: React.FC = () => {
5757

5858
if (!matchActiveTags(habit, tags.active)) return null
5959

60-
const extraProps = isReordering ? { ref: setNodeRef, style, ...attributes } : undefined
60+
const extraProps = { ref: setNodeRef, style, ...attributes }
6161

6262
return (
6363
<div
@@ -108,7 +108,9 @@ export const HabitCard: React.FC = () => {
108108
</div>
109109
</LinkWrapper>
110110

111-
{!isReordering && (
111+
{isReordering ? (
112+
<HabitIcon size={20} className="w-6 touch-none" {...listeners} />
113+
) : (
112114
<div className="ml-auto flex items-center gap-1 overflow-hidden">
113115
<CompletionButtons max={2} />
114116
</div>

0 commit comments

Comments
 (0)