Public Access
feat(games): add coming badge for unreleased games
This commit is contained in:
1 parent
edeea5a43d
commit
c158909083
17 files changed
+169
-3
No files matched your search
@@ -5,6 +5,7 @@ import {Button} from '@/components/ui/button';
|
||||
import {Dialog, DialogContent, DialogDescription, DialogTitle} from '@/components/ui/dialog';
|
||||
import {Skeleton} from '@/components/ui/skeleton';
|
||||
import GameRow from './GameRow.jsx';
|
||||
import ComingBadge from '../ComingBadge.jsx';
|
||||
import GameStatusBadge from '../GameStatusBadge.jsx';
|
||||
import {formatDate} from '../../utils/format.js';
|
||||
import {formatPlaytime} from '../../utils/games.js';
|
||||
@@ -52,6 +53,7 @@ export default function StatGamesDialog({request, onClose, onCloseAutoFocus}) {
|
||||
const moved = game.fromStatus || game.toStatus;
|
||||
return (
|
||||
<>
|
||||
<ComingBadge game={game} compact/>
|
||||
{!moved && game.status && <GameStatusBadge status={game.status} compact/>}
|
||||
{moved && (
|
||||
<span>{game.fromStatus ? t(`BACKLOG.STATUS.${game.fromStatus}`) : t('STATS.DRILL.NEW_IN_LIBRARY')}
|
||||
|
||||
Reference in new issue
Block a user