Skip to content

Commit

Permalink
Style tweak on async select component
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMuriuki committed Sep 19, 2024
1 parent e2efebc commit 3ae8f79
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.asyncSelect{
min-width: 240px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { SelectProps, DefaultOptionType } from 'antd/lib/select';
import { useTranslation } from '../../../mls';
import { UseQueryOptions, useQuery } from 'react-query';
import { TFunction } from '@opensrp/i18n';
import "./index.css"

Check failure on line 8 in packages/react-utils/src/components/AsyncSelect/BaseAsyncSelect/index.tsx

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Replace `"./index.css"` with `'./index.css';`

export type RawValueType = string | number | (string | number)[];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export function PaginatedAsyncSelect<ResourceT extends IResource>(
const remainingRecords = totalPossibleRecords - recordsFetchedNum;

const propsToSelect = {
style: { minWidth: '200px' },
className: "asyncSelect",

Check failure on line 176 in packages/react-utils/src/components/AsyncSelect/PaginatedAsyncSelect/index.tsx

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Replace `"asyncSelect"` with `'asyncSelect'`
...restProps,
placeholder,
onChange: changeHandler,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export function ValueSetAsyncSelect(props: ValueSetAsyncSelectProps) {
const selectDropDownRender = dropDownFactory(t, data, error as Error);

const selectProps = {
className: "asyncSelect",

Check failure on line 57 in packages/react-utils/src/components/AsyncSelect/ValueSetAsyncSelect/index.tsx

View workflow job for this annotation

GitHub Actions / test (22.x, ubuntu-latest)

Replace `"asyncSelect"` with `'asyncSelect'`
dropdownRender: selectDropDownRender,
options: data,
loading: isLoading,
Expand Down

0 comments on commit 3ae8f79

Please sign in to comment.