mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
15 lines
377 B
TypeScript
15 lines
377 B
TypeScript
|
type Props = {
|
||
|
adminUrl: string|undefined;
|
||
|
onLoad: () => void;
|
||
|
};
|
||
|
const AuthFrame: React.FC<Props> = ({adminUrl, onLoad}) => {
|
||
|
const iframeStyle = {
|
||
|
display: 'none'
|
||
|
};
|
||
|
|
||
|
return (
|
||
|
<iframe data-frame="admin-auth" src={adminUrl + 'auth-frame/'} style={iframeStyle} title="auth-frame" onLoad={onLoad}></iframe>
|
||
|
);
|
||
|
}
|
||
|
export default AuthFrame;
|