added header menu items

This commit is contained in:
Elyor Djalilov 2024-01-15 18:01:58 +05:00
parent 584e7d3073
commit 03eedd78b9

View File

@ -306,7 +306,28 @@ const SectionHeaderContent = (props) => {
const { header, isCategoryOrHeader, isNeedPaidIcon } = state; const { header, isCategoryOrHeader, isNeedPaidIcon } = state;
const arrayOfParams = getArrayOfParams(); const arrayOfParams = getArrayOfParams();
const menuItems = ( const menuItems = isSessionsPage ? (
<>
<DropDownItem
key="all"
label={t("Files:All")}
data-index={1}
onClick={onSelectAll}
/>
<DropDownItem
key="online"
label={t("Common:Online")}
data-index={2}
onClick={() => console.log("online")}
/>
<DropDownItem
key="offline"
label={t("Common:Offline")}
data-index={3}
onClick={() => console.log("offline")}
/>
</>
) : (
<> <>
<DropDownItem <DropDownItem
key="all" key="all"
@ -314,6 +335,7 @@ const SectionHeaderContent = (props) => {
data-index={1} data-index={1}
onClick={onSelectAll} onClick={onSelectAll}
/> />
<></>
</> </>
); );
@ -473,7 +495,7 @@ export default inject(({ auth, setup, common, peopleStore }) => {
}; };
})( })(
withLoading( withLoading(
withTranslation(["Settings", "SingleSignOn", "Common"])( withTranslation(["Settings", "SingleSignOn", "Common", "Files"])(
observer(SectionHeaderContent) observer(SectionHeaderContent)
) )
) )