mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
6dc1d08590
refs https://github.com/TryGhost/DevOps/issues/50 - when creating a TS config in our `eslint-plugin-ghost` dependency, I only extended the recommended config, which left out a lot of stylistic things we used to enforce in JS - this fixes that by bumping the dependency to a version which extends those shared configs, and fixes all the code that currently goes against those rules
14 lines
378 B
TypeScript
14 lines
378 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;
|