Skip to content

Commit

Permalink
Lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia-Lavrova committed Dec 7, 2020
1 parent 03deec8 commit 5b12ff0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
24 changes: 12 additions & 12 deletions src/components/Map/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ const PAGES_RESOURCE = '/_api/heritage/?action=search&format=json&limit=5000&src
const MIN_ZOOM_LEVEL = 0;

class MyMap extends Component<MapPropsInterface, MyMapParams> {
loadPointsWithDebounce = debounce((bbox) => {
this.loadPoints(bbox);
}, 1000);

abortController: { abort: () => void; signal: any } | undefined = undefined;

mapRef = React.createRef();

sourceRef = React.createRef();

cluster = React.createRef();

constructor(props: MapPropsInterface) {
super(props);

Expand Down Expand Up @@ -59,18 +71,6 @@ class MyMap extends Component<MapPropsInterface, MyMapParams> {
};
}

abortController: { abort: () => void; signal: any } | undefined = undefined;

mapRef = React.createRef();

sourceRef = React.createRef();

cluster = React.createRef();

loadPointsWithDebounce = debounce((bbox) => {
this.loadPoints(bbox);
}, 1000);

componentDidMount() {
const { lat, lon } = this.props.match.params;

Expand Down
4 changes: 2 additions & 2 deletions src/components/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
Address,
Wiki,
Sobory,
Link,
LinkIcon,
ExtraLink,
Templates,
} from 'icons';
Expand Down Expand Up @@ -197,7 +197,7 @@ const Sidebar = () => {

{info?.link && (
<div className={styles.info}>
<Link />
<LinkIcon />

<a
href={info.link}
Expand Down
6 changes: 3 additions & 3 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ReactComponent as Status } from './Status.svg';
import { ReactComponent as Address } from './Address.svg';
import { ReactComponent as Wiki } from './Wiki.svg';
import { ReactComponent as Sobory } from './Sobory.svg';
import { ReactComponent as Link } from './Link.svg';
import { ReactComponent as LinkIcon } from './Link.svg';
import { ReactComponent as ExtraLink } from './ExtraLink.svg';
import { ReactComponent as Templates } from './Templates.svg';

Expand All @@ -15,7 +15,7 @@ export {
Address,
Wiki,
Sobory,
Link,
LinkIcon,
ExtraLink,
Templates,
}
};

0 comments on commit 5b12ff0

Please sign in to comment.