Skip to content

Commit

Permalink
refactor: update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
quanho committed Mar 23, 2023
1 parent e96119c commit 6472eb7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apis/nucleus/src/components/listbox/ListBoxInline.jsx
Expand Up @@ -245,7 +245,7 @@ function ListBoxInline({ options, layout }) {
containerPadding = layoutOptions.layoutOrder === 'row' ? '2px 4px' : '2px 6px 2px 4px';
}

const SearchIconComp = constraints?.active ? (
const searchIconComp = constraints?.active ? (
<SearchIcon title={translator.get('Listbox.Search')} size="large" style={{ fontSize: '12px', padding: '7px' }} />
) : (
<IconButton
Expand All @@ -260,7 +260,7 @@ function ListBoxInline({ options, layout }) {
</IconButton>
);

const LockIconComp = selectDisabled() ? (
const lockIconComp = selectDisabled() ? (
<Lock size="large" style={{ fontSize: '12px', padding: '7px' }} />
) : (
<IconButton title={translator.get('SelectionToolbar.ClickToUnlock')} tabIndex={-1} onClick={unlock} size="large">
Expand Down Expand Up @@ -306,7 +306,7 @@ function ListBoxInline({ options, layout }) {
>
{showIcons && (
<Grid item sx={{ display: 'flex', alignItems: 'center', width: iconsWidth }}>
{isLocked ? LockIconComp : showSearchIcon && SearchIconComp}
{isLocked ? lockIconComp : showSearchIcon && searchIconComp}
{isDrillDown && (
<DrillDownIcon
tabIndex={-1}
Expand Down

0 comments on commit 6472eb7

Please sign in to comment.