Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
peterMuriuki committed Sep 19, 2024
1 parent 3ae8f79 commit 1fd05a5
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface BaseNewEditLocationUnitProps
fhirRootLocationId: string;
cancelURLGenerator: () => string;
updateLocationFormProps?: (formProps: LocationFormProps) => LocationFormProps;
i18nNamespace?: LocationI18nNamespace
i18nNamespace?: LocationI18nNamespace;
}

/**
Expand All @@ -42,7 +42,7 @@ export const BaseNewEditLocationUnit = (props: BaseNewEditLocationUnitProps) =>
cancelURLGenerator,
disabledTreeNodesCallback,
updateLocationFormProps,
i18nNamespace
i18nNamespace,
} = props;
const history = useHistory();
const location = useLocation();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const EusmAddEditLocationUnit = (props: EusmAddEditLocationUnitProps) =>
cancelURLGenerator: () => URL_SERVICE_POINT_LIST,
hidden: [isJurisdiction],
URL_SERVICE_POINT_LIST,
i18nNamespace: servicePointNamespace
i18nNamespace: servicePointNamespace,
};

return <BaseNewEditLocationUnit {...baseNewEditViewProps} />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export interface LocationFormProps
onCancel: () => void;
afterSubmit?: (payload: IfhirR4.ILocation) => void;
validationRulesFactory: ValidationFactory;
i18nNamespace?: LocationI18nNamespace
i18nNamespace?: LocationI18nNamespace;
}

const defaultProps = {
Expand All @@ -55,7 +55,7 @@ const defaultProps = {
disabled: [],
onCancel: () => undefined,
validationRulesFactory: defaultValidationRulesFactory,
i18nNamespace: namespace
i18nNamespace: namespace,
};

/** responsive layout for the form labels and columns */
Expand Down
2 changes: 1 addition & 1 deletion packages/fhir-location-management/src/helpers/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ export enum LocationUnitStatus {
SUSPENDED = 'suspended',
}

export type LocationI18nNamespace = typeof namespace | typeof servicePointNamespace
export type LocationI18nNamespace = typeof namespace | typeof servicePointNamespace;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +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"
import './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 = {
className: "asyncSelect",
className: 'asyncSelect',
...restProps,
placeholder,
onChange: changeHandler,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export function ValueSetAsyncSelect(props: ValueSetAsyncSelectProps) {
const selectDropDownRender = dropDownFactory(t, data, error as Error);

const selectProps = {
className: "asyncSelect",
className: 'asyncSelect',
dropdownRender: selectDropDownRender,
options: data,
loading: isLoading,
Expand Down

0 comments on commit 1fd05a5

Please sign in to comment.