fix(#28): use right arrow on Race To step and fix type issue
- Replace checkmark with right arrow on Race To submit button - Cast raceTo to string for parseInt in quick-pick highlight Refs #28
This commit is contained in:
@@ -762,7 +762,7 @@ const RaceToStep = ({ onNext, onCancel, initialValue = '', gameType }: RaceToSte
|
|||||||
<button
|
<button
|
||||||
key={value}
|
key={value}
|
||||||
type="button"
|
type="button"
|
||||||
className={`${styles['race-to-btn']} ${parseInt(raceTo, 10) === value ? styles.selected : ''}`}
|
className={`${styles['race-to-btn']} ${parseInt(String(raceTo), 10) === value ? styles.selected : ''}`}
|
||||||
onClick={() => handleQuickPick(value)}
|
onClick={() => handleQuickPick(value)}
|
||||||
>
|
>
|
||||||
{value}
|
{value}
|
||||||
@@ -793,11 +793,11 @@ const RaceToStep = ({ onNext, onCancel, initialValue = '', gameType }: RaceToSte
|
|||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
className={styles['arrow-btn']}
|
className={styles['arrow-btn']}
|
||||||
aria-label="Fertigstellen"
|
aria-label="Weiter"
|
||||||
style={{ fontSize: 48, width: 80, height: 80, borderRadius: '50%', background: '#222', color: '#fff', border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.15)', cursor: 'pointer' }}
|
style={{ fontSize: 48, width: 80, height: 80, borderRadius: '50%', background: '#222', color: '#fff', border: 'none', boxShadow: '0 2px 8px rgba(0,0,0,0.15)', cursor: 'pointer' }}
|
||||||
>
|
>
|
||||||
{/* Unicode checkmark */}
|
{/* Unicode right arrow */}
|
||||||
✓
|
→
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@@ -879,7 +879,7 @@ const BreakOrderStep = ({ players, rule, onNext, onCancel, initialFirst = 1, ini
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<form className={styles['new-game-form']} aria-label="Break-Reihenfolge wählen">
|
<form className={styles['new-game-form']} aria-label="Break-Reihenfolge wählen">
|
||||||
<div className={styles['screen-title']}>Wer bricht zuerst?</div>
|
<div className={styles['screen-title']}>Wer hat den ersten Anstoss?</div>
|
||||||
<div className={styles['progress-indicator']} style={{ marginBottom: 24 }}>
|
<div className={styles['progress-indicator']} style={{ marginBottom: 24 }}>
|
||||||
<span className={styles['progress-dot']} />
|
<span className={styles['progress-dot']} />
|
||||||
<span className={styles['progress-dot']} />
|
<span className={styles['progress-dot']} />
|
||||||
@@ -889,7 +889,7 @@ const BreakOrderStep = ({ players, rule, onNext, onCancel, initialFirst = 1, ini
|
|||||||
<span className={styles['progress-dot']} />
|
<span className={styles['progress-dot']} />
|
||||||
<span className={styles['progress-dot'] + ' ' + styles['active']} />
|
<span className={styles['progress-dot'] + ' ' + styles['active']} />
|
||||||
</div>
|
</div>
|
||||||
<div style={{ marginBottom: 16, fontWeight: 600 }}>Wer bricht zuerst?</div>
|
<div style={{ marginBottom: 16, fontWeight: 600 }}>Wer hat den ersten Anstoss?</div>
|
||||||
<div style={{ display: 'flex', gap: 12, flexWrap: 'wrap' }}>
|
<div style={{ display: 'flex', gap: 12, flexWrap: 'wrap' }}>
|
||||||
{players.filter(Boolean).map((name, idx) => (
|
{players.filter(Boolean).map((name, idx) => (
|
||||||
<button key={`first-${idx}`} type="button" className={styles['quick-pick-btn']} onClick={() => handleFirst(idx + 1)} aria-label={`Zuerst: ${name}`}>{name}</button>
|
<button key={`first-${idx}`} type="button" className={styles['quick-pick-btn']} onClick={() => handleFirst(idx + 1)} aria-label={`Zuerst: ${name}`}>{name}</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user