1
Fork 0
mirror of https://github.com/Steffo99/todocolors.git synced 2024-11-22 08:14:18 +00:00

Delete unused useBoardCreator

This commit is contained in:
Steffo 2023-08-08 17:50:09 +02:00
parent 12d3427435
commit 03fc7286a9
Signed by: steffo
GPG key ID: 2A24051445686895

View file

@ -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}
}