Skip to content

Commit

Permalink
console: add new sidebar icon that separates enums from tables (fix h…
Browse files Browse the repository at this point in the history
  • Loading branch information
Xetera authored and stevefan1999-personal committed Sep 12, 2020
1 parent 8997480 commit 1d6648f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion console/src/components/Services/Data/DataSubSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ class DataSubSidebar extends React.Component {
const isActive =
tableName === currentTable && currentLocation.includes(tableName);

const iconStyle = table.is_enum ? 'fa-list-ul' : 'fa-table';

return (
<li
className={isActive ? styles.activeLink : ''}
Expand All @@ -120,7 +122,7 @@ class DataSubSidebar extends React.Component {
data-test={tableName}
>
<i
className={styles.tableIcon + ' fa fa-table'}
className={`${styles.tableIcon} fa ${iconStyle}`}
aria-hidden="true"
/>
{displayTableName(table)}
Expand Down

0 comments on commit 1d6648f

Please sign in to comment.