mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-07 01:11:48 +00:00
[web] Error handling during SSO linking GitOrigin-RevId: 232ef0672e93dc7c68cd45396306e8b4328a35d9
27 lines
690 B
TypeScript
27 lines
690 B
TypeScript
import { useMeta } from '../../hooks/use-meta'
|
|
import SSOLinkConfirm from '../../../../modules/managed-users/frontend/js/components/sso-link-confirm'
|
|
|
|
export const LinkConfirmInterstitial = () => {
|
|
return <SSOLinkConfirm />
|
|
}
|
|
|
|
export const LinkConfirmInterstitialWithError = () => {
|
|
useMeta({ 'ol-error': 'SAMLInvalidSignatureError' })
|
|
return <SSOLinkConfirm />
|
|
}
|
|
|
|
export default {
|
|
title: 'Subscription / SSO / Link',
|
|
component: SSOLinkConfirm,
|
|
decorators: [
|
|
(Story: any) => {
|
|
useMeta({ 'ol-groupId': '123' })
|
|
useMeta({ 'ol-email': 'user@example.com' })
|
|
return (
|
|
<div className="container">
|
|
<Story />
|
|
</div>
|
|
)
|
|
},
|
|
],
|
|
}
|