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
commit a7fb1ffcd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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)