@mentions notifications

This commit is contained in:
Evan Hahn 2021-08-05 07:35:33 -05:00 committed by GitHub
parent 3bbe859452
commit 6b290a0f0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 627 additions and 51 deletions

View file

@ -5,6 +5,7 @@ import React, { ChangeEvent } from 'react';
import classNames from 'classnames';
export type Option = Readonly<{
disabled?: boolean;
text: string;
value: string | number;
}>;
@ -26,9 +27,14 @@ export function Select(props: PropsType): JSX.Element {
return (
<div className={classNames(['module-select', moduleClassName])}>
<select value={value} onChange={onSelectChange}>
{options.map(({ text, value: optionValue }) => {
{options.map(({ disabled, text, value: optionValue }) => {
return (
<option value={optionValue} key={optionValue} aria-label={text}>
<option
disabled={disabled}
value={optionValue}
key={optionValue}
aria-label={text}
>
{text}
</option>
);