Skip to content

Commit

Permalink
Show a close button on the drag modal
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkellly committed Jul 22, 2023
1 parent d117f4b commit ab24249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DragModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default function DragModal({ isDragging }: { isDragging: boolean }) {
<br />
</label>
</div>
{shownDrag && (<button className="btn btn-primary mt-4" onClick={() => setShownDrag()}>Close</button>)}
{!isDragging && (<button className="btn btn-primary mt-4" onClick={() => setShownDrag()}>Close</button>)}
</div>
</div>
);
Expand Down

0 comments on commit ab24249

Please sign in to comment.