mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
* Fix linkedin oidc checking in UserOverview * Improve refactor * Update * Last fix
20 lines
765 B
TypeScript
20 lines
765 B
TypeScript
import { BASE_PATH } from 'lib/constants'
|
|
import { PROVIDER_PHONE, PROVIDERS_SCHEMAS } from '../AuthProvidersFormValidation'
|
|
|
|
// [Joshen] Temporary fix as bulk delete will fire n requests since Auth + API do not have a bulk delete endpoint yet
|
|
export const MAX_BULK_DELETE = 20
|
|
|
|
export const PROVIDER_FILTER_OPTIONS = PROVIDERS_SCHEMAS.map((provider) => ({
|
|
name: provider.title,
|
|
value: 'key' in provider ? provider.key : provider.title.toLowerCase(),
|
|
icon: `${BASE_PATH}/img/icons/${provider.misc.iconKey}.svg`,
|
|
iconClass: provider.title === 'GitHub' ? 'dark:invert' : '',
|
|
})).concat(
|
|
PROVIDER_PHONE.properties.SMS_PROVIDER.enum.map((x) => ({
|
|
name: x.label,
|
|
value: x.value,
|
|
icon: `${BASE_PATH}/img/icons/${x.icon}`,
|
|
iconClass: '',
|
|
}))
|
|
)
|