Common: MoreLoginModal: get Sign up label
This commit is contained in:
parent
1997b6d24a
commit
5fc2677a2a
@ -61,6 +61,7 @@ interface IMoreLoginNodalProps {
|
||||
ssoLabel: string;
|
||||
ssoUrl: string;
|
||||
t: TFuncType;
|
||||
isSignUp: boolean;
|
||||
}
|
||||
|
||||
const MoreLoginModal: React.FC<IMoreLoginNodalProps> = (props) => {
|
||||
@ -72,6 +73,7 @@ const MoreLoginModal: React.FC<IMoreLoginNodalProps> = (props) => {
|
||||
onSocialLoginClick,
|
||||
ssoLabel,
|
||||
ssoUrl,
|
||||
isSignUp,
|
||||
} = props;
|
||||
|
||||
console.log("more login render", props);
|
||||
@ -94,7 +96,7 @@ const MoreLoginModal: React.FC<IMoreLoginNodalProps> = (props) => {
|
||||
className="provider-name"
|
||||
noSelect
|
||||
>
|
||||
{ssoLabel || getProviderTranslation("sso", t)}
|
||||
{ssoLabel || getProviderTranslation("sso", t, false, isSignUp)}
|
||||
</Text>
|
||||
<Button
|
||||
label={t("Common:LoginButton")}
|
||||
@ -118,7 +120,7 @@ const MoreLoginModal: React.FC<IMoreLoginNodalProps> = (props) => {
|
||||
className="provider-name"
|
||||
noSelect
|
||||
>
|
||||
{getProviderTranslation(label, t)}
|
||||
{getProviderTranslation(label, t, false, isSignUp)}
|
||||
</Text>
|
||||
<Button
|
||||
label={t("Common:LoginButton")}
|
||||
|
Loading…
Reference in New Issue
Block a user