@griddo/ax 11.0.10 → 11.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/ax",
3
3
  "description": "Griddo Author Experience",
4
- "version": "11.0.10",
4
+ "version": "11.0.11",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Carlos Torres <carlos.torres@secuoyas.com>",
@@ -229,5 +229,5 @@
229
229
  "publishConfig": {
230
230
  "access": "public"
231
231
  },
232
- "gitHead": "63fb5004bb2e4f58767548999421b8c05ef16d6f"
232
+ "gitHead": "49cb33a4341a566dfd5aa3e8e13b9569a93586b7"
233
233
  }
@@ -1,13 +1,25 @@
1
1
  import React from "react";
2
2
  import { Icon, ErrorToast } from "@ax/components";
3
+ import { IGlobalSettings } from "@ax/containers/App/reducer";
3
4
 
4
5
  import * as S from "./style";
5
6
 
6
7
  const LoginSSO = (props: ILoginSSOProps): JSX.Element => {
7
- const { handleSSO, errorSSO } = props;
8
+ const { handleSSO, errorSSO, settings } = props;
8
9
 
9
10
  const handleClick = () => handleSSO();
10
11
 
12
+ const welcomeText =
13
+ settings.SSOWelcomeText && settings.SSOWelcomeText.length ? (
14
+ settings.SSOWelcomeText
15
+ ) : (
16
+ <>
17
+ To start using Griddo, login with your
18
+ <br />
19
+ autentication platform
20
+ </>
21
+ );
22
+
11
23
  return (
12
24
  <S.Wrapper>
13
25
  <S.Main>
@@ -32,11 +44,7 @@ const LoginSSO = (props: ILoginSSOProps): JSX.Element => {
32
44
  </>
33
45
  ) : (
34
46
  <>
35
- <S.Text>
36
- To start using Griddo, login with your
37
- <br />
38
- autentication platform
39
- </S.Text>
47
+ <S.Text>{welcomeText}</S.Text>
40
48
  <S.StyledButton type="button" iconFill={false} onClick={handleClick}>
41
49
  <S.ContentButton>
42
50
  <S.IconButton>
@@ -62,6 +70,7 @@ const LoginSSO = (props: ILoginSSOProps): JSX.Element => {
62
70
  interface ILoginSSOProps {
63
71
  handleSSO: () => void;
64
72
  errorSSO: string | null;
73
+ settings: IGlobalSettings;
65
74
  }
66
75
 
67
76
  export default LoginSSO;
@@ -50,7 +50,7 @@ const Login = (props: ILoginProps): JSX.Element => {
50
50
  <S.LeftWrapper className={isLoginSuccess ? "animate" : ""} onAnimationEnd={_handleAnimationEnd} ref={wrapperRef}>
51
51
  <S.LoginWrapper className={isLoginSuccess ? "animate" : ""} width={wrapperWidth}>
52
52
  {settings.SSOActivated ? (
53
- <LoginSSO handleSSO={handleSSO} errorSSO={errorSSO} />
53
+ <LoginSSO handleSSO={handleSSO} errorSSO={errorSSO} settings={settings} />
54
54
  ) : (
55
55
  <LoginForm
56
56
  handleSubmit={handleSubmit}
@@ -53,6 +53,7 @@ export interface IGlobalSettings {
53
53
  autoSummary: boolean;
54
54
  autoTranslation: boolean;
55
55
  SSOActivated: boolean;
56
+ SSOWelcomeText: string;
56
57
  }
57
58
 
58
59
  export const initialState = {
@@ -84,6 +85,7 @@ export const initialState = {
84
85
  autoSummary: false,
85
86
  autoTranslation: false,
86
87
  SSOActivated: false,
88
+ SSOWelcomeText: "",
87
89
  },
88
90
  sessionStartedAt: null,
89
91
  hasAnimation: false,