Perf/web app authrozation (#22524)

This commit is contained in:
NFish 2025-07-17 10:52:10 +08:00 • committed by GitHub
commit a324d3942e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 592 additions and 441 deletions

View file

@ -8,6 +8,8 @@ type IExplore = {
hasEditPermission: boolean
installedApps: InstalledApp[]
setInstalledApps: (installedApps: InstalledApp[]) => void
isFetchingInstalledApps: boolean
setIsFetchingInstalledApps: (isFetchingInstalledApps: boolean) => void
}
const ExploreContext = createContext<IExplore>({
@ -16,6 +18,8 @@ const ExploreContext = createContext<IExplore>({
hasEditPermission: false,
installedApps: [],
setInstalledApps: noop,
isFetchingInstalledApps: false,
setIsFetchingInstalledApps: noop,
})
export default ExploreContext