mirror of https://github.com/boxyhq/jackson.git
Fix sdk css load (#1768)
* Import main stylesheet from sdk * Override CSS and turn off header display
This commit is contained in:
parent
6cf5639706
commit
fbec8c882b
|
@ -1,4 +1,5 @@
|
|||
import { useRouter } from 'next/router';
|
||||
|
||||
import { CreateSAMLConnection as CreateSAML, CreateOIDCConnection as CreateOIDC } from '@boxyhq/react-ui/sso';
|
||||
|
||||
import { errorToast } from '@components/Toaster';
|
||||
|
@ -26,10 +27,26 @@ const CreateSSOConnection = ({ setupLinkToken, idpType }: CreateSSOConnectionPro
|
|||
save: `/api/setup/${setupLinkToken}/sso-connection`,
|
||||
};
|
||||
|
||||
const _CSS = { input: 'input input-bordered', button: { ctoa: 'btn btn-primary' } };
|
||||
|
||||
return idpType === 'saml' ? (
|
||||
<CreateSAML variant='basic' urls={urls} successCallback={onSuccess} errorCallback={onError} />
|
||||
<CreateSAML
|
||||
variant='basic'
|
||||
urls={urls}
|
||||
successCallback={onSuccess}
|
||||
errorCallback={onError}
|
||||
classNames={_CSS}
|
||||
displayHeader={false}
|
||||
/>
|
||||
) : (
|
||||
<CreateOIDC variant='basic' urls={urls} successCallback={onSuccess} errorCallback={onError} />
|
||||
<CreateOIDC
|
||||
variant='basic'
|
||||
urls={urls}
|
||||
successCallback={onSuccess}
|
||||
errorCallback={onError}
|
||||
classNames={_CSS}
|
||||
displayHeader={false}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import micromatch from 'micromatch';
|
|||
import nextI18NextConfig from '../next-i18next.config.js';
|
||||
|
||||
import { AccountLayout, SetupLinkLayout } from '@components/layouts';
|
||||
|
||||
import '@boxyhq/react-ui/dist/style.css';
|
||||
import '../styles/globals.css';
|
||||
|
||||
const unauthenticatedRoutes = [
|
||||
|
|
Loading…
Reference in New Issue