|
|
@@ -42,6 +42,7 @@ const SiteLogo = ({
|
|
|
imageSource,
|
|
|
customTheme,
|
|
|
borderColor,
|
|
|
+ subTitleKey,
|
|
|
titleStyle,
|
|
|
imageSpace,
|
|
|
isDisabled,
|
|
|
@@ -124,7 +125,7 @@ const SiteLogo = ({
|
|
|
const renderLoading = () => {
|
|
|
let loadingColor: keyof NCoreUIKit.IconContentColors = "default";
|
|
|
|
|
|
- if(title) {
|
|
|
+ if(title || titleKey) {
|
|
|
loadingColor = "onPrimary";
|
|
|
} else if(imageUrl || ImageProp) {
|
|
|
loadingColor = "mid";
|
|
|
@@ -188,7 +189,7 @@ const SiteLogo = ({
|
|
|
};
|
|
|
|
|
|
const renderTitles = () => {
|
|
|
- if(!title) {
|
|
|
+ if(!title && !titleKey) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@@ -212,7 +213,7 @@ const SiteLogo = ({
|
|
|
{titleKey ? localize(titleKey) : title}
|
|
|
</Text>
|
|
|
{
|
|
|
- subTitle ?
|
|
|
+ subTitle || subTitleKey ?
|
|
|
<Text
|
|
|
customColor={subTitleCustomColor ? colors.project[subTitleCustomColor] : undefined}
|
|
|
variant={subTitleVariant ? subTitleVariant : currentSize.subTitleSize}
|
|
|
@@ -224,7 +225,7 @@ const SiteLogo = ({
|
|
|
...subTitleStyle
|
|
|
}}
|
|
|
>
|
|
|
- {subTitle}
|
|
|
+ {subTitleKey ? subTitleKey : subTitle}
|
|
|
</Text>
|
|
|
:
|
|
|
null
|