Skip to content

Commit

Permalink
Hide Viewmode option from Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Shailesh351 committed May 21, 2020
1 parent d5aa670 commit 270ba9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/ui-sidenav/client/SortList.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Icon, ToggleSwitch, RadioButton, Box, Flex, Margins } from '@rocket.cha
import { useTranslation } from '../../../client/contexts/TranslationContext';
import { useUserPreference } from '../../../client/contexts/UserContext';
import { useMethod } from '../../../client/contexts/ServerContext';
import { isMobile } from '../../utils';

function SortListItem({ text, icon, input }) {
return <Flex.Container>
Expand Down Expand Up @@ -34,7 +35,7 @@ export function SortList() {
return <>
<div className='rc-popover__column'>
<SortModeList/>
<ViewModeList/>
{isMobile() ? null : <ViewModeList/>}
<GroupingList/>
</div>
</>;
Expand Down

0 comments on commit 270ba9c

Please sign in to comment.