link to new item page from item list & model pages

This commit is contained in:
Emi Matchu 2020-09-12 18:23:12 -07:00
parent d29abf5cd1
commit 383d514397
2 changed files with 9 additions and 2 deletions

View file

@ -69,6 +69,9 @@ function ItemPageHeader({ itemId }) {
<Skeleton>
<NpBadge />
</Skeleton>
<Skeleton>
<LinkBadge href="/">Old DTI</LinkBadge>
</Skeleton>
<Skeleton>
<LinkBadge href="/">Jellyneo</LinkBadge>
</Skeleton>
@ -122,6 +125,9 @@ function ItemPageBadges({ item }) {
return (
<ItemBadgeList>
{item.isNc ? <NcBadge /> : <NpBadge />}
<LinkBadge href={`https://impress.openneo.net/items/${item.id}`}>
Old DTI
</LinkBadge>
<LinkBadge
href={
"https://items.jellyneo.net/search/?name=" +

View file

@ -10,6 +10,7 @@ import {
useTheme,
} from "@chakra-ui/core";
import { StarIcon } from "@chakra-ui/icons";
import { Link } from "react-router-dom";
import { safeImageUrl } from "../util";
@ -18,8 +19,8 @@ function ItemCard({ item, badges, ...props }) {
return (
<Box
as="a"
href={`https://impress.openneo.net/items/${item.id}`}
as={Link}
to={`/items/${item.id}`}
p="2"
boxShadow="lg"
borderRadius="lg"