Skip to content

Commit

Permalink
merging: mergin main branch and replacing old PR changes back
Browse files Browse the repository at this point in the history
  • Loading branch information
eternalmaha committed Oct 5, 2024
1 parent 4bb08cc commit eefc30f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/SingleList.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import Button from "react-bootstrap/Button";
import "./SingleList.scss";
import * as api from "../api/firebase";
import { useNavigate } from "react-router-dom";

export function SingleList({ name }: { name: string }) {
interface Props extends Pick<api.List, "name" | "path"> {
setListPath: (path: string) => void;
}

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

function handleClick() {
setListPath(path);
setTimeout(() => {
navigate(`/list/${name}`);
}, 200);
Expand Down

0 comments on commit eefc30f

Please sign in to comment.