Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
simonseyock committed Jun 3, 2024
1 parent 5e92857 commit 8698007
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
22 changes: 11 additions & 11 deletions src/Field/SearchField/SearchField.example.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ This demonstrates the usage of the SearchField with nominatim and wfs examples.
```jsx
import SearchField from '@terrestris/react-geo/dist/Field/SearchField/SearchField';
import MapComponent from '@terrestris/react-geo/dist/Map/MapComponent/MapComponent';
import MapContext from '@terrestris/react-util/dist/Context/MapContext/MapContext';
import {
createNominatimGetExtentFunction,
createNominatimGetValueFunction,
createNominatimSearchFunction,
createWfsSearchFunction,
MapContext
} from '@terrestris/react-util';
import OlLayerTile from 'ol/layer/Tile';
import OlMap from 'ol/Map';
import {fromLonLat} from 'ol/proj';
import OlSourceOSM from 'ol/source/OSM';
import OlView from 'ol/View';
import {useCallback, useEffect, useMemo, useState} from 'react';
import {
createNominatimSearchFunction,
createNominatimGetValueFunction,
createNominatimGetExtentFunction,
createWfsSearchFunction
} from "@terrestris/react-util";

const SearchFieldExample = () => {
const [map, setMap] = useState();
Expand All @@ -32,7 +32,7 @@ const SearchFieldExample = () => {
attributeDetails: {
'osm:osm-country-borders': {
name: {
type: 'string',
type: 'string',
exactSearch: false,
matchCase: false
}
Expand Down Expand Up @@ -66,7 +66,7 @@ const SearchFieldExample = () => {
<MapContext.Provider value={map}>

<div className="example-block" style={{ margin: '10px' }}>
<label>The NominatimSearch<br/>
<label>The NominatimSearch<br />
<SearchField
searchFunction={nominatimSearchFunction}
getValue={nominatimGetValue}
Expand All @@ -77,7 +77,7 @@ const SearchFieldExample = () => {
</div>

<div className="example-block" style={{ margin: '10px' }}>
<label>The WfsSearch<br/>
<label>The WfsSearch<br />
<SearchField
searchFunction={wfsSearchFunction}
getValue={wfsGetValue}
Expand All @@ -96,5 +96,5 @@ const SearchFieldExample = () => {
);
};

<SearchFieldExample/>
<SearchFieldExample />
```
5 changes: 2 additions & 3 deletions src/LayerTree/LayerTree.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { renderInMapContext } from '@terrestris/react-util/dist/Util/rtlTestUtils';
import { act, fireEvent, render, screen } from '@testing-library/react';
import userEvent from '@testing-library/user-event';
import OlLayerBase from 'ol/layer/Base';
import OlLayerGroup from 'ol/layer/Group';
import OlLayerTile from 'ol/layer/Tile';
Expand All @@ -7,9 +9,6 @@ import OlSourceTileWMS from 'ol/source/TileWMS';
import * as React from 'react';

import TestUtil from '../Util/TestUtil';
import { renderInMapContext } from '@terrestris/react-util/dist/Util/rtlTestUtils';
import userEvent from '@testing-library/user-event';

import LayerTree from './LayerTree';

describe('<LayerTree />', () => {
Expand Down

0 comments on commit 8698007

Please sign in to comment.