Skip to content

Commit

Permalink
refactor: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Feb 24, 2023
1 parent f8a5d2d commit b49f437
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/src/components/Layout/NavigationBreadcrumb.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NavItem as NavItemBase, NavLink as NavLinkBase } from 'reactstrap'
import Route from 'route-parser'
import { head, isNil } from 'lodash-es'
import { useRouter } from 'next/router'
import Select, { StylesConfig } from 'react-select'
import Select, { SingleValue, StylesConfig } from 'react-select'
import urljoin from 'url-join'
import { BsCaretRightFill as ArrowRight } from 'react-icons/bs'
import { useTranslationSafe } from 'src/helpers/useTranslationSafe'
Expand Down Expand Up @@ -165,7 +165,7 @@ export function BreadcrumbVariantSelector({ pathogenName, variant }: BreadcrumbV
const options = useMemo(() => variants.map((variant) => ({ label: variant, value: variant })), [variants])
const option = useMemo(() => ({ label: value, value }), [value])
const onChange = useCallback(
(option: DropdownOption<string> | null) => {
(option: SingleValue<{ label: string; value: string }>) => {
if (option) {
void push(urljoin('pathogen', pathogenName, 'variants', option.value)) // eslint-disable-line no-void
setValue(option.value)
Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Regions/RegionsPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function RegionsPlotImpl<T>({ width, height, data, minDate, maxDate, pathogen, c
.filter(Boolean)

return { lines, ranges }
}, [shouldShowRanges, variants, variantsStyles])
}, [shouldShowRanges, theme.plot.line.strokeWidth, variants, variantsStyles])

const metadata = useMemo(() => ({ pathogenName: pathogen.name, countryName }), [countryName, pathogen.name])

Expand Down
2 changes: 1 addition & 1 deletion web/src/components/Variants/VariantsPlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function LinePlot<T>({ width, height, data, minDate, maxDate, pathogen, variantN
.filter(Boolean)

return { lines, ranges }
}, [regions, countries, geographyStyles, shouldShowRanges])
}, [regions, countries, geographyStyles, theme.plot.line.strokeWidth, shouldShowRanges])

const metadata = useMemo(() => ({ pathogenName: pathogen.name, variantName }), [pathogen.name, variantName])

Expand Down

1 comment on commit b49f437

@vercel
Copy link

@vercel vercel bot commented on b49f437 Feb 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

flu-frequencies – ./

flu-frequencies-git-web-neherlab.vercel.app
flu-frequencies.vercel.app
flu-frequencies-neherlab.vercel.app

Please sign in to comment.