mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 15:51:59 +00:00
Fix LegacyPlugin
This commit is contained in:
@@ -1,21 +1,11 @@
|
|||||||
import { VFC } from 'react';
|
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 {
|
interface Props {
|
||||||
url: string;
|
url: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const LegacyPlugin: VFC<Props> = () => {
|
const LegacyPlugin: VFC<Props> = ({ url }) => {
|
||||||
return <div>LegacyPlugin Hello World</div>;
|
return <iframe style={{ border: 'none', width: '100%', height: '100%' }} src={url}></iframe>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default LegacyPlugin;
|
export default LegacyPlugin;
|
||||||
|
|||||||
Reference in New Issue
Block a user