Add link back to org from crate page
Diff
chartered-frontend/src/pages/crate/CrateView.tsx | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
@@ -18,7 +18,7 @@
Check,
Square,
} from "react-bootstrap-icons";
import { useParams, NavLink, Redirect } from "react-router-dom";
import { useParams, NavLink, Redirect, Link } from "react-router-dom";
import { authenticatedEndpoint, useAuthenticatedRequest } from "../../util";
import Prism from "react-syntax-highlighter/dist/cjs/prism";
@@ -96,7 +96,12 @@
<BoxSeam />
</div>
<h1 className="text-primary d-inline px-2">
<span className="text-secondary">{organisation}/</span>
<Link
to={`/crates/${organisation}`}
className="text-secondary text-decoration-none"
>
{organisation}/
</Link>
{crate}
</h1>
<h2 className="text-secondary m-0">{crateVersion.vers}</h2>