diff --git a/front-end/mathsearch/src/components/pages/Home.js b/front-end/mathsearch/src/components/pages/Home.js index 4f16d39b0..8e578b2d5 100644 --- a/front-end/mathsearch/src/components/pages/Home.js +++ b/front-end/mathsearch/src/components/pages/Home.js @@ -1,9 +1,8 @@ -import React, {useState} from 'react'; +import React, { useState } from 'react'; import { useNavigate } from "react-router-dom"; import UploadPDFToS3WithNativeSdk from '../UploadPDFToS3WithNativeSdk.js'; import LaTeXInput from '../LaTeXInput.js'; -import pdf from "./sample.pdf" import '../../App.css'; import './Home.css' @@ -34,7 +33,7 @@ function Home() { // const json = await response.json(); // console.log("hello") // console.log(json) - navigate('/results',{state:{pdf:pdfBinary, pages:pages}}) + navigate('/results', { state: { pdf: pdfBinary, pages: pages } }) } const test_api = async () => { @@ -53,7 +52,7 @@ function Home() {