diff --git a/QandA/frontend/src/HomePage.tsx b/QandA/frontend/src/HomePage.tsx index e95c91d..34f6eb5 100644 --- a/QandA/frontend/src/HomePage.tsx +++ b/QandA/frontend/src/HomePage.tsx @@ -1,5 +1,6 @@ /** @jsxImportSource @emotion/react */ import { css } from '@emotion/react'; +import { useNavigate } from 'react-router-dom'; import React from 'react'; import { PageTitle } from './PageTitle'; @@ -21,8 +22,9 @@ export const HomePage = () => { doGetUnansweredQuestion(); }, []); + const navigate = useNavigate(); const handleAskQuestionClick = () => { - console.log('TODO - move to the AskPage'); + navigate('ask'); }; return (