Avoid resource check in child components

This commit is contained in:
hishamco
2020-10-19 11:36:05 +03:00
parent fd5d777d3a
commit fed56098a0
2 changed files with 11 additions and 7 deletions

View File

@ -43,10 +43,7 @@ else
_openLabel += ">";
if (!string.IsNullOrEmpty(ResourceKey))
{
ChildContent =@<text>@Localizer[$"{ResourceKey}.Text"]</text>;
HelpText = Localizer[$"{ResourceKey}.{nameof(HelpText)}"];
}
ChildContent =@<text>@Localize("Text")</text>;
HelpText = Localize(nameof(HelpText));
}
}