Skip to content

Commit

Permalink
add summary redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
gordnzhou committed Sep 15, 2024
1 parent b58da90 commit a350ace
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions frontend/src/routes/summary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import axios from "axios";
import { useEffect, useState } from "react";
import { Button, Flex, Input } from "antd";
import { EditFilled } from "@ant-design/icons"
import { useNavigate } from "react-router-dom";
import { Spin } from 'antd';
import "../styles/Summary.css"

Expand All @@ -14,6 +15,8 @@ function Summary({transcript}) {
const [title, setTitle] = useState("");
const [summary, setSummary] = useState("");

const navigateTo = useNavigate();

useEffect(() => {
summarize();
}, []);
Expand Down Expand Up @@ -43,6 +46,8 @@ function Summary({transcript}) {
});

console.log(response.data);

navigateTo('/journal');
} catch (error) {
console.error(error);
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/widgets/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function Navbar() {
}}>
<div></div>
<h2><Link style={{ textDecoration: "none", color: "black", fontWeight: 600 }} to="/">memora.</Link></h2>
<FaBook size={30}/>
<FaBook size={30} style={{ color: "black" }}/>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
</nav>
);
Expand Down

0 comments on commit a350ace

Please sign in to comment.