Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#1135 | removed users tab for logged out users
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Dec 13, 2022
1 parent 69b475a commit 37a3441
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/search/ResourceTabs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
} from '@mui/icons-material'
import { get, startCase, invert } from 'lodash';
import { BLUE, WHITE, GREEN, ORANGE, DARKGRAY } from '../../common/constants';
import { isLoggedIn } from '../../common/utils';

const HEIGHT = '50px'

Expand Down Expand Up @@ -105,7 +106,10 @@ const ResourceTabs = props => {
<Tab className='material-tab' label={getLabelComponent('sources', GREEN)} icon={<ListIcon fontSize='small' style={getIconStyles(2, GREEN)} />} style={getTabStyles(2, GREEN)} />
<Tab className='material-tab' label={getLabelComponent('collections', GREEN)} icon={<LoyaltyIcon fontSize='small' style={getIconStyles(3, GREEN)} />} style={getTabStyles(3, GREEN)} />
<Tab className='material-tab' label={getLabelComponent('organizations', ORANGE)} icon={<HomeIcon fontSize='small' style={getIconStyles(4, ORANGE)} />} style={getTabStyles(4, ORANGE)} />
<Tab className='material-tab' label={getLabelComponent('users', ORANGE)} icon={<PersonIcon fontSize='small' style={getIconStyles(5, ORANGE)}/>} style={getTabStyles(5, ORANGE)} />
{
isLoggedIn() &&
<Tab className='material-tab' label={getLabelComponent('users', ORANGE)} icon={<PersonIcon fontSize='small' style={getIconStyles(5, ORANGE)}/>} style={getTabStyles(5, ORANGE)} />
}
</Tabs>
</AppBar>
</div>
Expand Down

0 comments on commit 37a3441

Please sign in to comment.