diff --git a/packages/web/src/javascripts/Components/ContentListView/Header/DisplayOptionsMenu.tsx b/packages/web/src/javascripts/Components/ContentListView/Header/DisplayOptionsMenu.tsx index 96c15ddce..827f75e4c 100644 --- a/packages/web/src/javascripts/Components/ContentListView/Header/DisplayOptionsMenu.tsx +++ b/packages/web/src/javascripts/Components/ContentListView/Header/DisplayOptionsMenu.tsx @@ -29,6 +29,57 @@ import { PaneLayout } from '@/Controllers/PaneController/PaneLayout' const DailyEntryModeEnabled = true +const SortIcon = ({ enabled, reverse }: { enabled: boolean; reverse: boolean | undefined }) => { + if (!enabled) { + return null + } + return ( + + ) +} + +const TabButton: FunctionComponent<{ + label: string + mode: PreferenceMode + icon?: VectorIconNameOrEmoji + currentMode: PreferenceMode + setCurrentMode: (mode: PreferenceMode) => void +}> = ({ mode, label, icon, currentMode, setCurrentMode }) => { + const isSelected = currentMode === mode + + return ( + + ) +} + const DisplayOptionsMenu: FunctionComponent = ({ application, isOpen, @@ -227,39 +278,6 @@ const DisplayOptionsMenu: FunctionComponent = ({ } }, [preferences.useTableView, changePreferences, paneController]) - const TabButton: FunctionComponent<{ - label: string - mode: PreferenceMode - icon?: VectorIconNameOrEmoji - }> = ({ mode, label, icon }) => { - const isSelected = currentMode === mode - - return ( - - ) - } - const isMobileScreen = useMediaQuery(MutuallyExclusiveMediaQueryBreakpoints.sm) const isTableViewEnabled = Boolean(isFilesSmartView || preferences.useTableView) const shouldHideNonApplicableOptions = isTableViewEnabled && !isMobileScreen @@ -269,8 +287,14 @@ const DisplayOptionsMenu: FunctionComponent = ({
Preferences for
- - + +
{currentMode === 'tag' && (