feat(ui): vue jeu branchée avec accueil et navigation (P3, F-01 à F-04, F-10)
This commit is contained in:
1 parent
0233be7fff
commit
61eef32c74
9 files changed
+136
-12
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
import { useCallback, useEffect, useState } from 'react'
|
||||
import { ApiClientError, cardsApi } from '@/lib/api-client'
|
||||
import type { Card, CardInput } from '@/domain/card'
|
||||
import type { Card } from '@/domain/card'
|
||||
|
||||
const EMPTY_THEME = ''
|
||||
|
||||
@@ -40,8 +40,7 @@ export function PlayView() {
|
||||
if (e instanceof ApiClientError) {
|
||||
setError(e.message)
|
||||
setCard(null)
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
setError('Impossible de tirer une carte')
|
||||
setCard(null)
|
||||
}
|
||||
@@ -82,7 +81,9 @@ export function PlayView() {
|
||||
</div>
|
||||
|
||||
{error && (
|
||||
<p role="alert" className="text-red-600">{error}</p>
|
||||
<p role="alert" className="text-red-600">
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
|
||||
{card && (
|
||||
|
||||
Reference in new issue
Block a user