Convert to readonly struct and replace with constructor temporarily

This commit is contained in:
Salman Ahmed
2021-08-31 20:45:32 +03:00
parent 208f66cc76
commit 3969350c9a
3 changed files with 22 additions and 16 deletions

View File

@ -64,12 +64,10 @@ namespace osu.Game.Overlays.Profile.Header.Components
{
var days = ranked_days - index + 1;
return new UserGraphTooltipContent
{
Name = UsersStrings.ShowRankGlobalSimple,
Count = rank.ToLocalisableString("\\##,##0"),
Time = days == 0 ? "now" : $"{"day".ToQuantity(days)} ago"
};
return new UserGraphTooltipContent(
UsersStrings.ShowRankGlobalSimple,
rank.ToLocalisableString("\\##,##0"),
days == 0 ? "now" : $"{"day".ToQuantity(days)} ago");
}
}
}