feat: show more usage info in billing page (#4808)

This commit is contained in:
Joel
2024-05-30 16:15:38 +08:00
committed by GitHub
parent 11f173693b
commit a7fb1ffcd8
12 changed files with 134 additions and 23 deletions

View File

@@ -40,7 +40,7 @@ const ModalContext = createContext<{
setShowApiBasedExtensionModal: Dispatch<SetStateAction<ModalState<ApiBasedExtension> | null>>
setShowModerationSettingModal: Dispatch<SetStateAction<ModalState<ModerationConfig> | null>>
setShowExternalDataToolModal: Dispatch<SetStateAction<ModalState<ExternalDataTool> | null>>
setShowPricingModal: Dispatch<SetStateAction<any>>
setShowPricingModal: () => void
setShowAnnotationFullModal: () => void
setShowModelModal: Dispatch<SetStateAction<ModalState<ModelModalType> | null>>
}>({
@@ -50,7 +50,7 @@ const ModalContext = createContext<{
setShowExternalDataToolModal: () => { },
setShowPricingModal: () => { },
setShowAnnotationFullModal: () => { },
setShowModelModal: () => {},
setShowModelModal: () => { },
})
export const useModalContext = () => useContext(ModalContext)