l-min-components 1.0.1090 → 1.0.1092

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.0.1090",
3
+ "version": "1.0.1092",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -6,9 +6,9 @@ import styled from "styled-components";
6
6
  * @param {{zoom: number, color: string}} param0
7
7
  * @returns
8
8
  */
9
- const Loader = ({ zoom, color }) => {
9
+ const Loader = ({ zoom, color, isOpen }) => {
10
10
  return (
11
- <Wrap zoom={zoom}>
11
+ <Wrap zoom={zoom} isOpen={isOpen}>
12
12
  <Container zoom={zoom} color={color}>
13
13
  <div></div>
14
14
  <div></div>
@@ -19,8 +19,10 @@ const Loader = ({ zoom, color }) => {
19
19
  };
20
20
 
21
21
  const Wrap = styled.div`
22
- width: ${({ zoom }) => (zoom ? (zoom * 100 * 80) / 100 : 80)}px;
23
- height: ${({ zoom }) => (zoom ? (zoom * 100 * 80) / 100 : 80)}px;
22
+ width: ${({ zoom, isOpen }) =>
23
+ zoom && isOpen ? (zoom * 100 * 80) / 100 : 30}px;
24
+ height: ${({ zoom, isOpen }) =>
25
+ zoom && isOpen ? (zoom * 100 * 80) / 100 : 30}px;
24
26
  display: flex;
25
27
  align-items: center;
26
28
  justify-content: "center";
@@ -64,7 +64,7 @@ const UserCard = ({ user, isOpen, findText }) => {
64
64
  return (
65
65
  <UserCardContainer isOpen={isOpen}>
66
66
  {userDetails?.loading && !organizationName ? (
67
- <Loader zoom={0.3} />
67
+ <Loader zoom={0.3} isOpen={isOpen} />
68
68
  ) : (
69
69
  <>
70
70
  <Avatar
@@ -94,14 +94,16 @@ const UserCard = ({ user, isOpen, findText }) => {
94
94
  if (window.location.pathname.includes("instructor")) {
95
95
  window.location.href = `${window.location.protocol}//${window.location.hostname}/instructor/profile`;
96
96
  }
97
- }}>
97
+ }}
98
+ >
98
99
  <UserName>{findText("Hello")}</UserName>
99
100
  <Handle
100
101
  style={{
101
102
  textTransform: "capitalize",
102
103
  fontWeight: 700,
103
104
  fontSize: 15,
104
- }}>{`${
105
+ }}
106
+ >{`${
105
107
  organizationName
106
108
  ? organizationName
107
109
  : generalData?.selectedAccount?.display_name ?? ""
@@ -49,7 +49,7 @@ const SideBar = ({ routes, findText }) => {
49
49
  <NavItem key={route.path}>
50
50
  <NavLinkStyled
51
51
  activeClassName="active"
52
- to={route?.path}
52
+ href={route?.path}
53
53
  className={
54
54
  route?.label !== "Learning"
55
55
  ? window.location.pathname.includes(