@@ -18,34 +18,34 @@ import {
1818import { toDisplayLimits } from 'src/operator/utils'
1919
2020// Types
21- import { OrgLimits , OperatorOrg } from 'src/types'
21+ import { OperatorOrgLimits , OperatorOrg } from 'src/types'
2222import { RemoteDataState } from 'src/types'
2323
2424export type Props = {
2525 children : JSX . Element
2626}
2727
2828export interface OverlayContextType {
29- limits : OrgLimits
29+ limits : OperatorOrgLimits
3030 limitsStatus : RemoteDataState
3131 handleGetLimits : ( id : string ) => void
3232 handleGetOrg : ( id : string ) => void
33- handleUpdateLimits : ( id : string , limits : OrgLimits ) => void
33+ handleUpdateLimits : ( id : string , limits : OperatorOrgLimits ) => void
3434 organization : OperatorOrg
3535 orgStatus : RemoteDataState
36- setLimits : ( _ : OrgLimits ) => void
36+ setLimits : ( _ : OperatorOrgLimits ) => void
3737 updateLimitStatus : RemoteDataState
3838}
3939
4040export const DEFAULT_CONTEXT : OverlayContextType = {
4141 handleGetLimits : ( _ : string ) => { } ,
4242 handleGetOrg : ( _ : string ) => { } ,
43- handleUpdateLimits : ( _id : string , _limits : OrgLimits ) => { } ,
43+ handleUpdateLimits : ( _id : string , _limits : OperatorOrgLimits ) => { } ,
4444 limits : null ,
4545 limitsStatus : RemoteDataState . NotStarted ,
4646 organization : null ,
4747 orgStatus : RemoteDataState . NotStarted ,
48- setLimits : ( _ : OrgLimits ) => { } ,
48+ setLimits : ( _ : OperatorOrgLimits ) => { } ,
4949 updateLimitStatus : RemoteDataState . NotStarted ,
5050}
5151
@@ -111,7 +111,7 @@ export const OverlayProvider: FC<Props> = React.memo(({children}) => {
111111 )
112112
113113 const handleUpdateLimits = useCallback (
114- async ( id : string , updatedLimits : OrgLimits ) => {
114+ async ( id : string , updatedLimits : OperatorOrgLimits ) => {
115115 try {
116116 setUpdateLimitStatus ( RemoteDataState . Loading )
117117 await putOperatorOrgsLimits ( { orgId : id , data : updatedLimits } )
0 commit comments