diff options
| author | Jonas Dellinger <jonas@dellinger.dev> | 2022-05-26 13:31:18 +0200 |
|---|---|---|
| committer | Jonas Dellinger <jonas@dellinger.dev> | 2022-05-26 13:31:18 +0200 |
| commit | ad1f57795eba57b43579ea5f290278b6de531f90 (patch) | |
| tree | 7a0c2f6e512483b91e65ea9fc217520643887ade | |
| parent | 71dd0ea449469ed38e784b9c73b673eece680446 (diff) | |
| download | decky-loader-ad1f57795eba57b43579ea5f290278b6de531f90.tar.gz decky-loader-ad1f57795eba57b43579ea5f290278b6de531f90.zip | |
Fix LegacyPlugin
| -rw-r--r-- | frontend/src/components/LegacyPlugin.tsx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/frontend/src/components/LegacyPlugin.tsx b/frontend/src/components/LegacyPlugin.tsx index 40f9e85f..f0dd2521 100644 --- a/frontend/src/components/LegacyPlugin.tsx +++ b/frontend/src/components/LegacyPlugin.tsx @@ -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; |
