link to new item page from item list & model pages
This commit is contained in:
parent
d29abf5cd1
commit
383d514397
2 changed files with 9 additions and 2 deletions
|
@ -69,6 +69,9 @@ function ItemPageHeader({ itemId }) {
|
||||||
<Skeleton>
|
<Skeleton>
|
||||||
<NpBadge />
|
<NpBadge />
|
||||||
</Skeleton>
|
</Skeleton>
|
||||||
|
<Skeleton>
|
||||||
|
<LinkBadge href="/">Old DTI</LinkBadge>
|
||||||
|
</Skeleton>
|
||||||
<Skeleton>
|
<Skeleton>
|
||||||
<LinkBadge href="/">Jellyneo</LinkBadge>
|
<LinkBadge href="/">Jellyneo</LinkBadge>
|
||||||
</Skeleton>
|
</Skeleton>
|
||||||
|
@ -122,6 +125,9 @@ function ItemPageBadges({ item }) {
|
||||||
return (
|
return (
|
||||||
<ItemBadgeList>
|
<ItemBadgeList>
|
||||||
{item.isNc ? <NcBadge /> : <NpBadge />}
|
{item.isNc ? <NcBadge /> : <NpBadge />}
|
||||||
|
<LinkBadge href={`https://impress.openneo.net/items/${item.id}`}>
|
||||||
|
Old DTI
|
||||||
|
</LinkBadge>
|
||||||
<LinkBadge
|
<LinkBadge
|
||||||
href={
|
href={
|
||||||
"https://items.jellyneo.net/search/?name=" +
|
"https://items.jellyneo.net/search/?name=" +
|
||||||
|
|
|
@ -10,6 +10,7 @@ import {
|
||||||
useTheme,
|
useTheme,
|
||||||
} from "@chakra-ui/core";
|
} from "@chakra-ui/core";
|
||||||
import { StarIcon } from "@chakra-ui/icons";
|
import { StarIcon } from "@chakra-ui/icons";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
import { safeImageUrl } from "../util";
|
import { safeImageUrl } from "../util";
|
||||||
|
|
||||||
|
@ -18,8 +19,8 @@ function ItemCard({ item, badges, ...props }) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box
|
<Box
|
||||||
as="a"
|
as={Link}
|
||||||
href={`https://impress.openneo.net/items/${item.id}`}
|
to={`/items/${item.id}`}
|
||||||
p="2"
|
p="2"
|
||||||
boxShadow="lg"
|
boxShadow="lg"
|
||||||
borderRadius="lg"
|
borderRadius="lg"
|
||||||
|
|
Loading…
Reference in a new issue