Skip to content

Commit

Permalink
Add List Name to copy list
Browse files Browse the repository at this point in the history
  • Loading branch information
justthinguyen committed Jan 17, 2024
1 parent e6a5aa6 commit 0f5287a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TodoList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const TodoList = (ps: TodoListProps) => {
const listAsText = todos
.map((todo) => (todo.isCompleted ? "✔️ " : "👉 ") + todo.content)
.join("\n");
navigator.clipboard.writeText(listAsText);
navigator.clipboard.writeText(todoName + "\n " + listAsText);
setShowCopiedMessage(true);
};

Expand Down

0 comments on commit 0f5287a

Please sign in to comment.