Skip to content

Commit

Permalink
Merge pull request Expensify#53241 from Expensify/cristi_fix-button-m…
Browse files Browse the repository at this point in the history
…argin

Fix button top margin in SearchMultipleSelectionPicker
  • Loading branch information
tgolen authored Dec 3, 2024
2 parents d9e53c7 + 90fa496 commit 2c78c93
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/Search/SearchMultipleSelectionPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import SelectionList from '@components/SelectionList';
import SelectableListItem from '@components/SelectionList/SelectableListItem';
import useDebouncedState from '@hooks/useDebouncedState';
import useLocalize from '@hooks/useLocalize';
import useThemeStyles from '@hooks/useThemeStyles';
import localeCompare from '@libs/LocaleCompare';
import Navigation from '@libs/Navigation/Navigation';
import type {OptionData} from '@libs/ReportUtils';
Expand All @@ -25,6 +26,7 @@ type SearchMultipleSelectionPickerProps = {

function SearchMultipleSelectionPicker({items, initiallySelectedItems, pickerTitle, onSaveSelection, shouldShowTextInput = true}: SearchMultipleSelectionPickerProps) {
const {translate} = useLocalize();
const styles = useThemeStyles();

const [searchTerm, debouncedSearchTerm, setSearchTerm] = useDebouncedState('');
const [selectedItems, setSelectedItems] = useState<SearchMultipleSelectionPickerItem[]>(initiallySelectedItems ?? []);
Expand Down Expand Up @@ -106,13 +108,14 @@ function SearchMultipleSelectionPicker({items, initiallySelectedItems, pickerTit
() => (
<Button
success
style={[styles.mt4]}
text={translate('common.save')}
pressOnEnter
onPress={handleConfirmSelection}
large
/>
),
[translate, handleConfirmSelection],
[translate, handleConfirmSelection, styles.mt4],
);
return (
<SelectionList
Expand Down

0 comments on commit 2c78c93

Please sign in to comment.