fix(striker-ui): allow ReactNode in select items

main
Tsu-ba-me 3 years ago
parent 117c6adda5
commit 3d180f3809
  1. 11
      striker-ui/components/SelectWithLabel.tsx

@ -1,4 +1,4 @@
import { FC } from 'react';
import { FC, ReactNode } from 'react';
import {
Checkbox as MUICheckbox,
FormControl as MUIFormControl,
@ -13,9 +13,12 @@ import OutlinedInputLabel, {
} from './OutlinedInputLabel';
import Select, { SelectProps } from './Select';
type SelectItem<SelectItemValueType = string> = {
displayValue?: SelectItemValueType;
value: SelectItemValueType;
type SelectItem<
ValueType = string,
DisplayValueType = ValueType | ReactNode,
> = {
displayValue?: DisplayValueType;
value: ValueType;
};
type SelectWithLabelOptionalProps = {

Loading…
Cancel
Save