Skip to content

Commit cbe1da7

Browse files
(Lookup): pass static classNames statically
1 parent 74368a5 commit cbe1da7

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/scripts/Lookup.tsx

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,8 @@ const LookupSelectedState: FC<LookupSelectedStateProps> = ({
136136
listboxId,
137137
onRemoveSelection,
138138
}) => {
139-
const comboboxClassNames = classnames(
140-
'slds-combobox',
141-
'slds-dropdown-trigger',
142-
'slds-dropdown-trigger_click'
143-
);
144-
145139
return (
146-
<div className={comboboxClassNames}>
140+
<div className='slds-combobox slds-dropdown-trigger slds-dropdown-trigger_click'>
147141
<div
148142
className='slds-combobox__form-element slds-input-has-icon slds-input-has-icon_left-right'
149143
role='none'
@@ -696,17 +690,10 @@ const LookupDropdown: FC<LookupDropdownProps> = ({
696690
}) => {
697691
if (!opened) return null;
698692

699-
const dropdownClassNames = classnames(
700-
'slds-dropdown',
701-
'slds-dropdown_length-with-icon-7',
702-
'slds-dropdown_fluid',
703-
'slds-scrollable_none'
704-
);
705-
706693
return (
707694
<div
708695
id={listboxId}
709-
className={dropdownClassNames}
696+
className='slds-dropdown slds-dropdown_length-with-icon-7 slds-dropdown_fluid slds-scrollable_none'
710697
style={{ maxHeight: RESET_MAX_HEIGHT }}
711698
role='listbox'
712699
aria-label='Search Results'

0 commit comments

Comments
 (0)