Skip to content

Commit

Permalink
version icon changes
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Dec 2, 2020
1 parent 456f352 commit 97a0917
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/components/common/ResourceVersionLabel.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {
AcUnit as AsteriskIcon,
AccountTreeRounded as TreeIcon
} from '@material-ui/icons';
import ReleasedChip from './ReleasedChip';

Expand All @@ -10,7 +10,7 @@ const ResourceVersionLabel = props => {
<div className='col-sm-12 no-side-padding'>
<span className='resource-label'>
<span style={{paddingTop: '5px'}}>
<AsteriskIcon fontSize='small' style={{width: '14px'}} />
<TreeIcon fontSize='small' style={{width: '14px'}} />
</span>
<span>{props.owner}</span>
<span>{SEPARATOR}</span>
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/VersionButton.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { Button } from '@material-ui/core';
import {
AcUnit as AsteriskIcon,
AccountTreeRounded as TreeIcon
} from '@material-ui/icons';
import { BLUE, WHITE, RED, BLACK } from '../../common/constants';

Expand All @@ -15,7 +15,7 @@ const VersionButton = ({label, onClick, retired, href, bgColor, textColor}) => {
<Button
href={href}
variant='contained'
startIcon={<AsteriskIcon />}
startIcon={<TreeIcon />}
onClick={onClick}
style={style}>
{label}
Expand Down
6 changes: 4 additions & 2 deletions src/components/common/VersionFilter.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { Chip, MenuItem, Menu } from '@material-ui/core';
import { AcUnit as AsteriskIcon } from '@material-ui/icons';
import { AccountTreeRounded as TreeIcon, ArrowDropDown as ArrowDropDownIcon } from '@material-ui/icons';
import { map, without } from 'lodash';

const VersionFilter = props => {
Expand All @@ -25,11 +25,13 @@ const VersionFilter = props => {
<Chip
variant="outlined"
color='primary'
icon={<AsteriskIcon fontSize='inherit' style={{width: '14px'}} />}
icon={<TreeIcon fontSize='inherit' style={{width: '14px', marginLeft: '5px'}} />}
label={selected}
onClick={onOpen}
size={size || 'medium'}
style={{minWidth: '80px'}}
deleteIcon={<ArrowDropDownIcon fontSize="inherit" />}
onDelete={onOpen}
/>
<Menu
id="versions-menu"
Expand Down
6 changes: 3 additions & 3 deletions src/components/search/ResultsTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
KeyboardArrowUp as KeyboardArrowUpIcon,
LocalOffer as LocalOfferIcon,
Link as LinkIcon,
AcUnit as AsteriskIcon,
AccountTreeRounded as TreeIcon,
Flag as FlagIcon,
ArrowForward as ForwardIcon,
Public as PublicIcon,
Expand Down Expand Up @@ -88,7 +88,7 @@ const RESOURCE_DEFINITIONS = {
tags: [
{id: 'activeConcepts', value: 'active_concepts', label: 'Concepts', icon: <LocalOfferIcon fontSize='small' style={TAG_ICON_STYLES} />, hrefAttr: 'concepts_url'},
{id: 'activeMappings', value: 'active_mappings', label: 'Mappings', icon: <LinkIcon fontSize='small' style={TAG_ICON_STYLES} />, hrefAttr: 'mappings_url'},
{id: 'versions', value: 'versions', label: 'Versions', icon: <AsteriskIcon fontSize='small' style={TAG_ICON_STYLES} />, hrefAttr: 'versions_url'},
{id: 'versions', value: 'versions', label: 'Versions', icon: <TreeIcon fontSize='small' style={TAG_ICON_STYLES} />, hrefAttr: 'versions_url'},
],
tabs: ['Versions',],
expandible: true,
Expand All @@ -105,7 +105,7 @@ const RESOURCE_DEFINITIONS = {
tags: [
{id: 'activeConcepts', value: 'active_concepts', label: 'Concepts', icon: <LocalOfferIcon fontSize='small' style={TAG_ICON_STYLES} />, hrefAttr: 'concepts_url'},
{id: 'activeMappings', value: 'active_mappings', label: 'Mappings', icon: <LinkIcon fontSize='small' style={TAG_ICON_STYLES} />, hrefAttr: 'mappings_url'},
{id: 'versions', value: 'versions', label: 'Versions', icon: <AsteriskIcon fontSize='small' style={TAG_ICON_STYLES} />, hrefAttr: 'versions_url'},
{id: 'versions', value: 'versions', label: 'Versions', icon: <TreeIcon fontSize='small' style={TAG_ICON_STYLES} />, hrefAttr: 'versions_url'},
],
tabs: ['Versions',],
expandible: true,
Expand Down

0 comments on commit 97a0917

Please sign in to comment.