Skip to content

Commit

Permalink
add types to SortOptions [#870]
Browse files Browse the repository at this point in the history
out of scope for the main thrust of the branch, but quiets the
typechecker.
  • Loading branch information
genehack committed Jun 12, 2024
1 parent 7c4d8bc commit 7d3f74d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static-site/src/components/ListResources/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { Dispatch, SetStateAction, useState, useRef, useEffect } from 'react';
import React, { Dispatch, FormEvent, SetStateAction, useState, useRef, useEffect } from 'react';
import styled from 'styled-components';
import Select, { MultiValue } from 'react-select';
import ScrollableAnchor from '../../../vendored/react-scrollable-anchor/index';
Expand Down Expand Up @@ -160,8 +160,8 @@ export default ListResourcesResponsive


function SortOptions({sortMethod, changeSortMethod}) {
function onChangeValue(event) {
changeSortMethod(event.target.value);
function onChangeValue(event:FormEvent<HTMLInputElement>): void {
changeSortMethod(event.currentTarget.value);
}
return (
<SortContainer>
Expand Down

0 comments on commit 7d3f74d

Please sign in to comment.