Skip to content

Commit

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

const titleComponent = constraints?.active ? (
const TitleComponent = constraints?.active ? (
<EditableTitle layout={layout} model={model} />
) : (
<Title variant="h6" noWrap ref={titleRef} title={layout.title}>
Expand Down Expand Up @@ -311,7 +311,7 @@ function ListBoxInline({ options, layout }) {
</Grid>
)}
<Grid item sx={{ justifyContent: isRtl ? 'flex-end' : 'flex-start' }} className={classes.listBoxHeader}>
{showTitle && titleComponent}
{showTitle && TitleComponent}
</Grid>
</Grid>
<Grid item xs />
Expand Down

0 comments on commit 6603e37

Please sign in to comment.