Use the new Select component everywhere

This commit is contained in:
Josh Perez
2021-06-03 18:12:23 -04:00
committed by GitHub
parent cdf8b0b28d
commit 016ef8af79
4 changed files with 53 additions and 67 deletions

View File

@@ -1,7 +1,7 @@
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import React from 'react';
import React, { ChangeEvent } from 'react';
import classNames from 'classnames';
export type Option = Readonly<{
@@ -19,7 +19,7 @@ export type PropsType = Readonly<{
export function Select(props: PropsType): JSX.Element {
const { moduleClassName, value, options, onChange } = props;
const onSelectChange = (event: React.ChangeEvent<HTMLSelectElement>) => {
const onSelectChange = (event: ChangeEvent<HTMLSelectElement>) => {
onChange(event.target.value);
};