mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 07:29:16 +00:00
## Description Part of the work for OAuth apps with the scoped permissions. This PR wires the org and users authorized apps lists to backend.
31 lines
1.0 KiB
TypeScript
31 lines
1.0 KiB
TypeScript
import { useFeatureFlags, useFlag } from 'common'
|
|
import { PageContainer } from 'ui-patterns/PageContainer'
|
|
|
|
import { AuthorizedApps } from './AuthorizedApps'
|
|
import { OAuthAppsAuthorizedList } from './OAuthAppsAuthorizedList'
|
|
import { PublishableApps } from './PublishableApps'
|
|
|
|
// [Joshen] Note on nav UX
|
|
// Kang Ming mentioned that it might be better to split Published Apps and Authorized Apps into 2 separate tabs
|
|
// to prevent any confusion (case study: GitHub). Authorized apps could be in the "integrations" tab, but let's
|
|
// check in again after we wrap up Vercel integration
|
|
|
|
export const OAuthApps = () => {
|
|
const isScopedOAuthManageEnabled = useFlag('enableScopedOAuthManage')
|
|
const { hasLoaded } = useFeatureFlags()
|
|
return (
|
|
<>
|
|
<PageContainer size="default" className="pb-16">
|
|
<PublishableApps />
|
|
{hasLoaded ? (
|
|
isScopedOAuthManageEnabled ? (
|
|
<OAuthAppsAuthorizedList />
|
|
) : (
|
|
<AuthorizedApps />
|
|
)
|
|
) : null}
|
|
</PageContainer>
|
|
</>
|
|
)
|
|
}
|