From 03fc7286a9b12e3bf312628d06b3c1c90343e372 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 8 Aug 2023 17:50:09 +0200 Subject: [PATCH] Delete unused `useBoardCreator` --- todoblue/src/app/[lang]/useBoardCreator.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 todoblue/src/app/[lang]/useBoardCreator.ts diff --git a/todoblue/src/app/[lang]/useBoardCreator.ts b/todoblue/src/app/[lang]/useBoardCreator.ts deleted file mode 100644 index 2666c7e..0000000 --- a/todoblue/src/app/[lang]/useBoardCreator.ts +++ /dev/null @@ -1,13 +0,0 @@ -"use client"; -import {useCallback} from "react" -import {useRouter} from "next/navigation" - -export function useBoardCreator() { - const router = useRouter(); - - const createBoard = useCallback((board: String) => { - router.push(`/board/${board}`); - }, []) - - return {createBoard} -}