l-min-components 1.7.1360 → 1.7.1362

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,6 +1,6 @@
1
1
  {
2
2
  "name": "l-min-components",
3
- "version": "1.7.1360",
3
+ "version": "1.7.1362",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -31,7 +31,9 @@ import {
31
31
  import InstructorAccountSwitcher from "../instructorAccountSwitcher";
32
32
  // import SideMenu from "../sideBar/sideMenu";
33
33
  import InstructorRightBar from "../fileRightBar/instructorRightBar2";
34
- import EnterpriseRightBar from "../fileRightBar/enterpriseRightBar";
34
+ import EnterpriseRightBar, {
35
+ FallbackRightBar,
36
+ } from "../fileRightBar/enterpriseRightBar";
35
37
  import useHeader from "../header/getHeaderDetails";
36
38
  import GracePeriod from "../deactivated";
37
39
  import MobileLayout from "../mobileLayout";
@@ -505,10 +507,9 @@ const AppMainLayout = ({ children }) => {
505
507
  ) : activeAccountType === "developer" ? (
506
508
  <DeveloperBanner findText={findText} />
507
509
  ) : (
508
- <DeveloperBanner findText={findText} />
510
+ <FallbackRightBar />
509
511
  ))}
510
512
  {/* {rightComponent ?? <Banner />} */}
511
- <button onClick={handleGetStorageSummary}>refresh</button>
512
513
  </RightLayout>
513
514
  )}
514
515
  </MainLayout>
@@ -280,4 +280,13 @@ const EmptyCourse = styled.div`
280
280
  font-size: 12px;
281
281
  }
282
282
  `;
283
+
284
+ export const FallbackRightBar = styled.div`
285
+ background: #fff;
286
+ width: 232px;
287
+ max-width: 232px;
288
+
289
+ border-radius: 30px;
290
+ height: 625px;
291
+ `;
283
292
  export default EnterpriseRightBar;
@@ -9,6 +9,8 @@ const InstructorMessage = ({
9
9
  disabled,
10
10
  btnText = "Upgrade",
11
11
  onClick,
12
+ hideBtn,
13
+ title,
12
14
  }) => {
13
15
  return (
14
16
  <Container>
@@ -16,28 +18,31 @@ const InstructorMessage = ({
16
18
  <img src={img} alt="" />
17
19
  </ImageSection>
18
20
  <Bottom>
21
+ {title && <h2>{title}</h2>}
19
22
  {messsageHTML ? (
20
23
  <p dangerouslySetInnerHTML={{ __html: messsageHTML }}>{messsage}</p>
21
24
  ) : (
22
25
  <p>{messsage}</p>
23
26
  )}
24
- <div>
25
- <ButtonComponent
26
- disabled={disabled}
27
- type="primary"
28
- text={btnText}
29
- onClick={onClick}
30
- styles={{
31
- marginTop: "14px",
32
- fontSize: "12px",
33
- width: "100%",
34
- gap: "8px",
35
- padding: "15.457px 30.913px",
36
- height: "38.641px",
37
- boxShadow: "0px 7.728px 15.457px 0px rgba(254, 191, 16, 0.25)",
38
- }}
39
- />
40
- </div>
27
+ {!hideBtn && (
28
+ <div>
29
+ <ButtonComponent
30
+ disabled={disabled}
31
+ type="primary"
32
+ text={btnText}
33
+ onClick={onClick}
34
+ styles={{
35
+ marginTop: "14px",
36
+ fontSize: "12px",
37
+ width: "100%",
38
+ gap: "8px",
39
+ padding: "15.457px 30.913px",
40
+ height: "38.641px",
41
+ boxShadow: "0px 7.728px 15.457px 0px rgba(254, 191, 16, 0.25)",
42
+ }}
43
+ />
44
+ </div>
45
+ )}
41
46
  </Bottom>
42
47
  </Container>
43
48
  );
@@ -69,6 +74,11 @@ const ImageSection = styled.div`
69
74
  }
70
75
  `;
71
76
  const Bottom = styled.div`
77
+ > h2 {
78
+ color: #00c2c2;
79
+ font-size: 14px;
80
+ margin-bottom: 5px;
81
+ }
72
82
  > p {
73
83
  color: #4a4d4d;
74
84
  font-size: 11.592px;
@@ -110,14 +110,14 @@ const PersonalRightBar = ({ planState, onShowTest }) => {
110
110
  </TestSection>
111
111
 
112
112
  <InstructorMessage
113
- onClick={() => {
114
- window.location.href = redirectURL("/settings/payment");
115
- }}
113
+ // onClick={() => {
114
+ // window.location.href = redirectURL("/settings/payment");
115
+ // }}
116
+ title="Coming soon!"
116
117
  disabled={planState === "GRACE PERIOD"}
117
- messsageHTML={
118
- "Upgrade to <span>Premium</span> <br/> for more features."
119
- }
118
+ messsage="Learn any language you want with Learngual while having fun every step of the way."
120
119
  btnText="Upgrade"
120
+ hideBtn
121
121
  />
122
122
  </EnterpriseContainer>
123
123
  );