Merge branch 'develop' into bugfix/form-room
@ -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 (
|
||||
|
Before Width: | Height: | Size: 416 B After Width: | Height: | Size: 598 B |
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 662 B |
BIN
public/images/notifications/connect.png
Normal file
After Width: | Height: | Size: 450 B |
BIN
public/images/notifications/drupal.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
public/images/notifications/integration.gif
Normal file
After Width: | Height: | Size: 751 KiB |
Before Width: | Height: | Size: 746 B After Width: | Height: | Size: 1.1 KiB |
BIN
public/images/notifications/onlyoffice.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 404 B |
BIN
public/images/notifications/wordpress.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
public/images/notifications/zapier.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
public/images/notifications/zoom.png
Normal file
After Width: | Height: | Size: 1.4 KiB |