mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-25 17:54:18 +00:00
Delete unused useBoardCreator
This commit is contained in:
parent
12d3427435
commit
03fc7286a9
1 changed files with 0 additions and 13 deletions
|
@ -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}
|
||||
}
|
Loading…
Reference in a new issue