chore: add selector for use app store (#3746)

This commit is contained in:
KVOJJJin
2024-04-24 13:07:20 +08:00
committed by GitHub
parent a39de8a686
commit 0715db7681
5 changed files with 19 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ const SwitchAppModal = ({ show, appDetail, inAppDetail = false, onSuccess, onClo
const { push, replace } = useRouter()
const { t } = useTranslation()
const { notify } = useContext(ToastContext)
const { setAppDetail } = useAppStore()
const setAppDetail = useAppStore(s => s.setAppDetail)
const { isCurrentWorkspaceManager } = useAppContext()
const { plan, enableBilling } = useProviderContext()