Skip to content

hook in function "cell" #5164

Answered by mawnir
mawnir asked this question in Q&A
Discussion options

You must be logged in to vote

i fix it with new component in cell

const CellComponent = ({ row }: { row: any }) => {
        const { push } = useRouter();   <=======
         const editPost = (id: string) => {
             push(`/dashboard/posts/edit/${id}`);
         };
....
}

{
 cell: CellComponent,
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by mawnir
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants