Fix LegacyPlugin

This commit is contained in:
Jonas Dellinger
2022-05-26 13:31:18 +02:00
parent 71dd0ea449
commit ad1f57795e

View File

@@ -1,21 +1,11 @@
import { VFC } from 'react';
// class LegacyPlugin extends React.Component {
// constructor(props: object) {
// super(props);
// }
// render() {
// return <iframe style={{ border: 'none', width: '100%', height: '100%' }} src={this.props.url}></iframe>
// }
// }
interface Props {
url: string;
}
const LegacyPlugin: VFC<Props> = () => {
return <div>LegacyPlugin Hello World</div>;
const LegacyPlugin: VFC<Props> = ({ url }) => {
return <iframe style={{ border: 'none', width: '100%', height: '100%' }} src={url}></iframe>;
};
export default LegacyPlugin;