Merge branch 'develop' into bugfix/form-room

This commit is contained in:
Akmal Isomadinov 2024-06-19 15:59:19 +05:00
commit 99cd9ad8cc
12 changed files with 18 additions and 15 deletions

View File

@ -67,13 +67,6 @@ const TabsCommon = (props) => {
}
}, [tReady, isLoadedSubmenu]);
const load = async () => {
const currentTab = getCurrentTab();
await loadBaseInfo(
!isMobileView ? (currentTab === 0 ? "general" : "branding") : "",
);
};
const data = [
{
id: "general",
@ -92,6 +85,24 @@ const TabsCommon = (props) => {
},
];
const getCurrentTabId = () => {
const path = location.pathname;
const currentTab = data.find((item) => path.includes(item.id));
return currentTab !== -1 && data.length ? currentTab.id : data[0].id;
};
const currentTabId = getCurrentTabId();
const load = async () => {
await loadBaseInfo(
!isMobileView
? currentTabId === "general"
? "general"
: "branding"
: "",
);
};
const onSelect = (e) => {
navigate(
combineUrl(
@ -102,14 +113,6 @@ const TabsCommon = (props) => {
);
};
const getCurrentTabId = () => {
const path = location.pathname;
const currentTab = data.find((item) => path.includes(item.id));
return currentTab !== -1 && data.length ? currentTab.id : data[0].id;
};
const currentTabId = getCurrentTabId();
if (!isLoadedSubmenu) return <LoaderTabs />;
return (

Binary file not shown.

Before

Width:  |  Height:  |  Size: 416 B

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 662 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 746 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 278 B

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB