🏡 index : ~doyle/chartered.git

author Jordan Doyle <jordan@doyle.la> 2021-09-25 1:54:12.0 +01:00:00
committer Jordan Doyle <jordan@doyle.la> 2021-09-25 1:54:12.0 +01:00:00
commit
99888d42837d6baef5751155633a3044b571c822 [patch]
tree
70a4823478c4ac29459dacddc7682eb5c0700c53
parent
4ee74ebaa981f4bb0d7907eb8dd06cb79f285d74
download
99888d42837d6baef5751155633a3044b571c822.tar.gz

Add link back to org from crate page



Diff

 chartered-frontend/src/pages/crate/CrateView.tsx |  9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/chartered-frontend/src/pages/crate/CrateView.tsx b/chartered-frontend/src/pages/crate/CrateView.tsx
index 7c1488f..c0d5f96 100644
--- a/chartered-frontend/src/pages/crate/CrateView.tsx
+++ a/chartered-frontend/src/pages/crate/CrateView.tsx
@@ -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>