l-min-components 1.0.744 → 1.0.747

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.744",
3
+ "version": "1.0.747",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src/assets",
@@ -35,7 +35,6 @@ const AppMainLayout = () => {
35
35
  const [rightLayout, setRightLayout] = useState(true);
36
36
  const [rightComponent, setRightComponent] = useState();
37
37
  const [generalData, setGeneralData] = useState({});
38
- const [deleteAccount, setDeleteAccount] = useState(false)
39
38
  const [coming, setComing] = useState();
40
39
  const [activePage, setActivePage] = useState("reports");
41
40
  const [page, setPage] = useState("index");
@@ -160,8 +159,6 @@ const AppMainLayout = () => {
160
159
  setRightLayout,
161
160
  generalData,
162
161
  setGeneralData,
163
- deleteAccount,
164
- setDeleteAccount,
165
162
  coming,
166
163
  hasLayoutBackgroundImage,
167
164
  setHasLayoutBackgroundImage,
@@ -61,7 +61,7 @@ const HeaderComponent = (props) => {
61
61
  handleGetNotification,
62
62
  } = useHeader();
63
63
  const { pathname } = useLocation();
64
- const { setGeneralData, generalData, deleteAccount, notificationMarkReadData } =
64
+ const { setGeneralData, generalData, notificationMarkReadData } =
65
65
  useContext(OutletContext);
66
66
  const [selectedAccount, setSelectedAccount] = useState();
67
67
  const { setDefaultAccount, handleSetDefaultAccount } = useHeader();
@@ -159,7 +159,7 @@ const HeaderComponent = (props) => {
159
159
  useEffect(() => {
160
160
  if (userAccountsDetail?.data) {
161
161
  const validAccounts = userAccountsDetail.data.results.filter(account => !account.pending_delete);
162
-
162
+
163
163
  if (generalData?.selectedAccount && generalData?.selectedAccount?.pending_delete) {
164
164
  const nextValidAccount = validAccounts[0];
165
165
  if (nextValidAccount) {
@@ -173,9 +173,10 @@ const HeaderComponent = (props) => {
173
173
  }
174
174
  }, [
175
175
  generalData?.selectedAccount,
176
+ userAccountsDetail?.data,
177
+
176
178
  ]);
177
179
 
178
-
179
180
  const containerRef = useRef(null);
180
181
  const secondContainerRef = useRef(null);
181
182
  const acctDropdownContainerRef = useRef(null);