Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert game header component to typescript #12050

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bdach
Copy link
Contributor

@bdach bdach commented Mar 26, 2025

Continuation of #10455

Comment on lines +47 to +60
<span className='mp-history-game__stat'>
{endTime != null
? <StringWithComponent
mappings={{
endTime,
startTime,
}}
pattern=':startTime - :endTime' />
: <StringWithComponent
mappings={{
inProgress: trans('matches.match.in-progress'),
startTime,
}}
pattern=':startTime :inProgress' />}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I forgot to mention - I'm kinda inventing with this one because I don't think anything else does ad-hoc patterns like this (at least I can't grep any) but maybe this is better than the previous code which was kinda hard to parse?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant