Skip to content

Commit

Permalink
docs: update demo link path in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
przwojwwp committed Oct 6, 2024
1 parent 6a6011c commit aa3e0d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Implement a simple [TODO app](https://mate-academy.github.io/react_todo-app/) th
- Implement a solution following the [React task guidelines](https://github.com/mate-academy/react_task-guideline#react-tasks-guideline).
- Use the [React TypeScript cheat sheet](https://mate-academy.github.io/fe-program/js/extra/react-typescript).
- Open another terminal and run tests with `npm test` to ensure your solution is correct.
- Replace `<your_account>` with your GitHub username in the [DEMO LINK](https://<your_account>.github.io/react_todo-app/) and add it to the PR description.
- Replace `<your_account>` with your GitHub username in the [DEMO LINK](https://przwojwwp.github.io/react_todo-app/) and add it to the PR description.
2 changes: 1 addition & 1 deletion cypress/integration/page.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const page = {
todosCounter: () => cy.byDataCy('TodosCounter'),
clearCompletedButton: () => cy.byDataCy('ClearCompletedButton'),
footer: () => cy.byDataCy('Footer'),
localStorage: () => cy.getAllLocalStorage().its('http://localhost:5173/'),
localStorage: () => cy.getAllLocalStorage().its('http://localhost:3001/'),
data: () => page.localStorage().then(({ todos = '[]' }) => JSON.parse(todos)),

visit: (initialTodos) =>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Todos/Todos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ export const Todos = () => {

if (editingTodoId !== null) {
document.addEventListener('mousedown', handleClickOutsideForm);
document.addEventListener('keydown', handlePressEscape);
document.addEventListener('keyup', handlePressEscape);
}

return () => {
document.removeEventListener('mousedown', handleClickOutsideForm);
document.removeEventListener('keydown', handlePressEscape);
document.removeEventListener('keyup', handlePressEscape);
};
});

Expand Down

0 comments on commit aa3e0d7

Please sign in to comment.