mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-07 00:34:41 +00:00
feat: add release status fallback
This commit is contained in:
parent
8c7eb767bc
commit
f3667eb209
1 changed files with 11 additions and 1 deletions
|
@ -29,12 +29,22 @@ export const ReleaseLink = (props) => {
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="absolute flex flex-col items-end gap-1 top-2 right-2">
|
<div className="absolute flex flex-col items-end gap-1 top-2 right-2">
|
||||||
{props.status && (
|
{props.status ? (
|
||||||
<div className="bg-gray-500 rounded-sm">
|
<div className="bg-gray-500 rounded-sm">
|
||||||
<p className="px-2 sm:px-4 py-0.5 sm:py-1 text-xs xl:text-base text-white">
|
<p className="px-2 sm:px-4 py-0.5 sm:py-1 text-xs xl:text-base text-white">
|
||||||
{props.status.name}
|
{props.status.name}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
) : (
|
||||||
|
<div className="bg-gray-500 rounded-sm">
|
||||||
|
<p className="px-2 sm:px-4 py-0.5 sm:py-1 text-xs xl:text-base text-white">
|
||||||
|
{props.status_id == 1
|
||||||
|
? "Завершено"
|
||||||
|
: props.status_id == 2
|
||||||
|
? "Онгоинг"
|
||||||
|
: "Анонс"}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="bg-gray-500 rounded-sm">
|
<div className="bg-gray-500 rounded-sm">
|
||||||
<div className="px-2 sm:px-4 py-0.5 sm:py-1 text-xs xl:text-base text-white flex">
|
<div className="px-2 sm:px-4 py-0.5 sm:py-1 text-xs xl:text-base text-white flex">
|
||||||
|
|
Loading…
Add table
Reference in a new issue