l-min-components 1.7.1386 → 1.7.1388

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.1386",
3
+ "version": "1.7.1388",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -424,16 +424,15 @@ const AppMainLayout = ({ children }) => {
424
424
  )}
425
425
  </LeftLayout>
426
426
  <CenterLayout isOpen={isOpen} style={centerLayoutStyle}>
427
- {(window.location.pathname.includes("instructor") ||
428
- (activeAccountType === "instructor" &&
429
- !accountIsPendingDeletion)) && (
430
- <InstructorAccountSwitcher
431
- // setAccountType={setAffiliatesActive}
432
- generalData={generalData}
433
- onChange={(v) => setAffiliateAccount(v)}
434
- setIsAffiliateLoading={setIsAffiliateLoading}
435
- />
436
- )}
427
+ {activeAccountType === "instructor" &&
428
+ !accountIsPendingDeletion && (
429
+ <InstructorAccountSwitcher
430
+ // setAccountType={setAffiliatesActive}
431
+ generalData={generalData}
432
+ onChange={(v) => setAffiliateAccount(v)}
433
+ setIsAffiliateLoading={setIsAffiliateLoading}
434
+ />
435
+ )}
437
436
  {!generalData?.selectedAccount ? (
438
437
  <BlankState />
439
438
  ) : accountIsPendingDeletion &&
@@ -126,9 +126,19 @@ export const getLeftRoutes = (accoutType) => {
126
126
  icon: <DictionaryIcon />,
127
127
  },
128
128
  {
129
- path: window.location.hostname.includes("ca")
130
- ? "https://demo.learngual.ca/type-select"
131
- : "https://demo.learngual.com/type-select",
129
+ path: `${
130
+ window.location.hostname.includes("staging")
131
+ ? `https://demo-test-01.learngual${
132
+ window.location.hostname.includes("ca")
133
+ ? ".ca/type-select"
134
+ : ".com/type-select"
135
+ }`
136
+ : `https://demo.learngual${
137
+ window.location.hostname.includes("ca")
138
+ ? ".ca/type-select"
139
+ : ".com/type-select"
140
+ }`
141
+ }`,
132
142
  label: "Demo",
133
143
  icon: <CompuetrerIcon />,
134
144
  },