Compare commits

...

4 Commits

2 changed files with 18 additions and 17 deletions

View File

@ -19,6 +19,7 @@ export default function SuitableDetailPopupButton() {
} }
return ( return (
<div className="float-btn-wrap">
<div className="btn-flex-wrap com"> <div className="btn-flex-wrap com">
<div className="btn-bx"> <div className="btn-bx">
<button className="btn-frame n-blue icon" onClick={handleClosePopup}> <button className="btn-frame n-blue icon" onClick={handleClosePopup}>
@ -36,5 +37,6 @@ export default function SuitableDetailPopupButton() {
</button> </button>
</div> </div>
</div> </div>
</div>
) )
} }

View File

@ -175,10 +175,9 @@ export function useSurvey(id?: number): {
}) })
return resp.data.id ?? 0 return resp.data.id ?? 0
}, },
onSuccess: (data) => { onSuccess: () => {
queryClient.invalidateQueries({ queryKey: ['survey', 'list'] }) queryClient.invalidateQueries({ queryKey: ['survey', 'list'] })
queryClient.invalidateQueries({ queryKey: ['survey', id] }) queryClient.invalidateQueries({ queryKey: ['survey', id] })
return data
}, },
}) })