|
|
@ -244,14 +244,16 @@ function Home({ initialSettings }) {
|
|
|
|
)
|
|
|
|
)
|
|
|
|
], [settings.layout]);
|
|
|
|
], [settings.layout]);
|
|
|
|
|
|
|
|
|
|
|
|
if (!activeTab) {
|
|
|
|
useEffect(() => {
|
|
|
|
const initialTab = decodeURI(asPath.substring(asPath.indexOf("#") + 1));
|
|
|
|
if (!activeTab) {
|
|
|
|
if (initialTab !== '/') {
|
|
|
|
const initialTab = decodeURI(asPath.substring(asPath.indexOf("#") + 1));
|
|
|
|
setActiveTab(initialTab)
|
|
|
|
if (initialTab !== '/') {
|
|
|
|
} else {
|
|
|
|
setActiveTab(initialTab)
|
|
|
|
setActiveTab(tabs['0'] ?? false)
|
|
|
|
} else {
|
|
|
|
|
|
|
|
setActiveTab(tabs['0'] ?? false)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const servicesAndBookmarksGroups = useMemo(() => {
|
|
|
|
const servicesAndBookmarksGroups = useMemo(() => {
|
|
|
|
const tabGroupFilter = g => g && [activeTab, undefined].includes(settings.layout?.[g.name]?.tab);
|
|
|
|
const tabGroupFilter = g => g && [activeTab, undefined].includes(settings.layout?.[g.name]?.tab);
|
|
|
|