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() {

MathSearch

- +
diff --git a/front-end/mathsearch/src/index.js b/front-end/mathsearch/src/index.js index e69de29bb..d563c0fb1 100644 --- a/front-end/mathsearch/src/index.js +++ b/front-end/mathsearch/src/index.js @@ -0,0 +1,17 @@ +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import './index.css'; +import App from './App'; +import reportWebVitals from './reportWebVitals'; + +const root = ReactDOM.createRoot(document.getElementById('root')); +root.render( + + + +); + +// If you want to start measuring performance in your app, pass a function +// to log results (for example: reportWebVitals(console.log)) +// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals +reportWebVitals();