diff options
author | Nate Sesti <sestinj@gmail.com> | 2023-08-06 16:23:19 -0700 |
---|---|---|
committer | Nate Sesti <sestinj@gmail.com> | 2023-08-06 16:23:19 -0700 |
commit | aafa5d5ec91a533f70d644e4d3fadd6f388c3e4b (patch) | |
tree | d0d51619f15a8ba87fdc22d1ae78efc7618ca04e | |
parent | 712b110ac67e7bff0729b903512bda7f4c77c8d9 (diff) | |
download | sncontinue-aafa5d5ec91a533f70d644e4d3fadd6f388c3e4b.tar.gz sncontinue-aafa5d5ec91a533f70d644e4d3fadd6f388c3e4b.tar.bz2 sncontinue-aafa5d5ec91a533f70d644e4d3fadd6f388c3e4b.zip |
feat: :sparkles: back button on history page
-rw-r--r-- | extension/react-app/src/pages/history.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/extension/react-app/src/pages/history.tsx b/extension/react-app/src/pages/history.tsx index 0142836f..f925d52c 100644 --- a/extension/react-app/src/pages/history.tsx +++ b/extension/react-app/src/pages/history.tsx @@ -6,6 +6,7 @@ import { RootStore } from "../redux/store"; import { useNavigate } from "react-router-dom"; import { secondaryDark, vscBackground } from "../components"; import styled from "styled-components"; +import { ArrowLeftIcon } from "@heroicons/react/24/outline"; const Tr = styled.tr` &:hover { @@ -47,7 +48,15 @@ function History() { return ( <div className="w-full"> - <h1 className="text-2xl font-bold m-4">History</h1> + <div className="items-center flex"> + <ArrowLeftIcon + width="1.4em" + height="1.4em" + onClick={() => navigate("/")} + className="inline-block ml-4 cursor-pointer" + /> + <h1 className="text-2xl font-bold m-4 inline-block">History</h1> + </div> <table className="w-full"> <tbody> {sessions.map((session, index) => ( |