diff --git a/src/App.jsx b/src/App.jsx index 480d03d..4d00854 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -10,6 +10,10 @@ import { addMoneyToWallet as addMoneyService } from './services/apiService.jsx'; +import { + madeRecommendations +} from './workers-functions.js'; + function App() { const { loginWithRedirect, logout, isAuthenticated, user, getAccessTokenSilently } = useAuth0(); const [fixtures, setFixtures] = useState([]); @@ -231,13 +235,19 @@ function App() { } }; + const makeRecommendations = async () => { + let userId = localStorage.getItem('userId'); + const result = await madeRecommendations(userId); + console.log(result); + }; + + const handleShowResultsClick = () => { + // Code to show results + }; + return (
Welcome, {user.name}
+Worker Status: {workerAvailable ? 'Available' : 'Unavailable'}