feat: add chess resign and undo actions
All checks were successful
Deploy blog-frontend / build-and-deploy (push) Successful in 2m16s
All checks were successful
Deploy blog-frontend / build-and-deploy (push) Successful in 2m16s
This commit is contained in:
@@ -19,6 +19,12 @@ export const outcomeBadgeTones: Record<ChessOutcome, 'neutral' | 'info' | 'succe
|
||||
UNKNOWN: 'neutral',
|
||||
};
|
||||
|
||||
export const getChessOutcomeLabel = (outcome: ChessOutcome, status?: string) => {
|
||||
if (status === 'RESIGNED' && outcome === 'LOSS') return '기권패';
|
||||
|
||||
return outcomeLabels[outcome];
|
||||
};
|
||||
|
||||
export const formatChessDateTime = (value?: string) => {
|
||||
if (!value) return '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user