Skip to content

Commit

Permalink
Merge pull request #50 from the-collab-lab/mp-navigate-to-list-from-h…
Browse files Browse the repository at this point in the history
…omepage

Mp navigate to list from homepage
  • Loading branch information
MarcosPerez16 authored Oct 4, 2024
2 parents 64ce84a + e0aba03 commit d79c9c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/SingleList.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import './SingleList.css';
import { useNavigate } from 'react-router-dom';

export function SingleList({ name, path, setListPath }) {
const navigate = useNavigate();

function handleClick() {
setListPath(path);
navigate('/list');
}

return (
Expand Down

0 comments on commit d79c9c0

Please sign in to comment.