File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export const barChartOptions: ApexOptions = {
2323 } ,
2424 } ,
2525 dataLabels : {
26- enabled : true ,
26+ enabled : false ,
2727 } ,
2828 stroke : {
2929 show : true ,
Original file line number Diff line number Diff line change 11import { useState } from 'react' ;
22import { useMutation , useQuery , useQueryClient } from '@tanstack/react-query' ;
3+ import { toast } from 'react-toastify' ;
34import { useModalStore } from 'shared/model/modalStore' ;
45import { queries } from '../api/queries' ;
56import { stockApi } from '../api/stockApi' ;
@@ -62,7 +63,10 @@ export const usePurchaseOrder = () => {
6263 const queryClient = useQueryClient ( ) ;
6364 const { mutate, isPending } = useMutation ( {
6465 mutationFn : ( formData : RequestFormData ) => stockApi . create ( formData ) ,
65- onSuccess : ( ) => queryClient . invalidateQueries ( { queryKey : queries . stock . list . _def } ) ,
66+ onSuccess : ( ) => {
67+ queryClient . invalidateQueries ( { queryKey : queries . stock . list . _def } ) ;
68+ toast . success ( '발주 요청 되었습니다.' ) ;
69+ } ,
6670 } ) ;
6771
6872 const handleSubmit = async ( formData : PurchaseOrderFormData ) => {
You can’t perform that action at this time.
0 commit comments