diff --git a/background-move/src/App.tsx b/background-move/src/App.tsx index 53b90a3..8187be5 100644 --- a/background-move/src/App.tsx +++ b/background-move/src/App.tsx @@ -19,14 +19,13 @@ import '@ionic/react/css/display.css'; /* Theme variables */ import './theme/variables.css'; - import Background from './components/background'; setupIonicReact(); const App: React.FC = () => ( - + ); diff --git a/background-move/src/components/background.tsx b/background-move/src/components/background.tsx index 5fc36a4..20ec794 100644 --- a/background-move/src/components/background.tsx +++ b/background-move/src/components/background.tsx @@ -2,10 +2,17 @@ import react from 'react'; import '../theme/background.css'; -const Background: react.FC = () => { +const Background: react.FC<{ shift: { x: number; y: number } }> = (props: { + shift: { x: number; y: number }; +}) => { return ( -
- +
+
); };