File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/domains/recipe/components/details Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import ConfirmModal from '@/shared/components/modal-pop/ConfirmModal';
66import { useRecipeComments } from '../../api/useRecipeComment' ;
77import { getApi } from '@/app/api/config/appConfig' ;
88import { useToast } from '@/shared/hook/useToast' ;
9+ import { ParamValue } from 'next/dist/server/request/params' ;
910
1011interface Props {
1112 cocktailId : number ;
@@ -21,7 +22,7 @@ function RecipeComment({ cocktailId }: Props) {
2122
2223 const { toastInfo } = useToast ( ) ;
2324
24- const postRecipeComment = async ( cocktailId : number , content : string ) => {
25+ const postRecipeComment = async ( cocktailId : number | ParamValue , content : string ) => {
2526 if ( ! user ?. id ) {
2627 toastInfo ( '로그인 후 이용 가능합니다' ) ;
2728 return ;
You can’t perform that action at this time.
0 commit comments