@mentions notifications
This commit is contained in:
parent
3bbe859452
commit
6b290a0f0c
29 changed files with 627 additions and 51 deletions
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue