Add version next/prev navigator
This commit is contained in:
@@ -53,9 +53,26 @@ const VersionShowPage = ({
|
|||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<Box>
|
<Box>
|
||||||
<Heading as='h2'>
|
<Box mb={2}>
|
||||||
v{versionData.version} : {versionData.name}{' '}
|
{versionData.previousVersion != null && (
|
||||||
<small>(Current Version)</small>
|
<NextLink
|
||||||
|
href={`/honkai3rd/versions/${versionData.previousVersion}`}
|
||||||
|
passHref
|
||||||
|
>
|
||||||
|
<Link>Previous (v{versionData.previousVersion})</Link>
|
||||||
|
</NextLink>
|
||||||
|
)}
|
||||||
|
{versionData.nextVersion != null && (
|
||||||
|
<NextLink
|
||||||
|
href={`/honkai3rd/versions/${versionData.nextVersion}`}
|
||||||
|
passHref
|
||||||
|
>
|
||||||
|
<Link>Next (v{versionData.nextVersion})</Link>
|
||||||
|
</NextLink>
|
||||||
|
)}
|
||||||
|
</Box>
|
||||||
|
<Heading as='h1'>
|
||||||
|
v{versionData.version} : {versionData.name}
|
||||||
</Heading>
|
</Heading>
|
||||||
<Box mb={4}>
|
<Box mb={4}>
|
||||||
{formatDate(new Date(versionData.duration[0]), 'PP')} -{' '}
|
{formatDate(new Date(versionData.duration[0]), 'PP')} -{' '}
|
||||||
|
|||||||
@@ -50,7 +50,26 @@ const VersionIndexPage = ({
|
|||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
<Box mb={4}>
|
<Box mb={4}>
|
||||||
<Heading as='h2'>
|
<Box mb={2}>
|
||||||
|
{currentVersionData.previousVersion != null && (
|
||||||
|
<NextLink
|
||||||
|
href={`/honkai3rd/versions/${currentVersionData.previousVersion}`}
|
||||||
|
passHref
|
||||||
|
>
|
||||||
|
<Link>Previous (v{currentVersionData.previousVersion})</Link>
|
||||||
|
</NextLink>
|
||||||
|
)}
|
||||||
|
{currentVersionData.nextVersion != null && (
|
||||||
|
<NextLink
|
||||||
|
href={`/honkai3rd/versions/${currentVersionData.nextVersion}`}
|
||||||
|
passHref
|
||||||
|
>
|
||||||
|
<Link>Next (v{currentVersionData.nextVersion})</Link>
|
||||||
|
</NextLink>
|
||||||
|
)}
|
||||||
|
</Box>
|
||||||
|
|
||||||
|
<Heading as='h1'>
|
||||||
v{currentVersionData.version} : {currentVersionData.name}{' '}
|
v{currentVersionData.version} : {currentVersionData.name}{' '}
|
||||||
<small>(Current Version)</small>
|
<small>(Current Version)</small>
|
||||||
</Heading>
|
</Heading>
|
||||||
|
|||||||
Reference in New Issue
Block a user