-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Lucene): create contentType multi select for admin ui #36
Conversation
Co-authored-by: Sean G. Wright <[email protected]>
import { IoCheckmarkSharp } from 'react-icons/io5'; | ||
import { MdOutlineCancel } from 'react-icons/md'; | ||
import { RxCross1 } from 'react-icons/rx'; | ||
import Select, { type ActionMeta, type ClearIndicatorProps, components, type CSSObjectWithLabel, type GroupBase, type MultiValue, type MultiValueRemoveProps, type OptionProps, type StylesConfig } from 'react-select'; // eslint-disable-line sort-imports |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to disable the eslint rule here, just fix the order of imported types.
</Stack> | ||
); | ||
const customStyle: StylesConfig<OptionType, true, GroupBase<OptionType>> = { | ||
control: (styles, { isFocused }) => ({ // eslint-disable-line @typescript-eslint/consistent-type-assertions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this case it would make a sense to disable consistent-type-assertions
for the whole customStyle block with
/* eslint-disable @typescript-eslint/naming-convention */
..... block code ....
/* eslint-enable @typescript-eslint/naming-convention */
<div className="label-wrapper___AcszK"> | ||
<label className="label___WET63">Included content types</label> | ||
</div> | ||
<Select<OptionType, true> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to explicitly define generic types here?
Motivation
Create multi-select for Content Types in Admin UI used to select content types for a specific path used for indexing
Checklist