mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Mark themeName prop as deprecated
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
5e4eb8e2b0
commit
310a2f14d9
@ -38,8 +38,8 @@ export type IconData = string | React.ReactNode | ((opt: IconDataFnArg) => React
|
||||
|
||||
export type InputProps = Omit<InputElementProps, "onChange" | "onSubmit"> & {
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
* @deprecated
|
||||
*/
|
||||
theme?: "round-black" | "round";
|
||||
lightTheme?: boolean; // Forced light theme, may be used for dialogs which is always "bright"
|
||||
className?: string;
|
||||
|
||||
@ -29,6 +29,10 @@ export interface SelectOption<T = any> {
|
||||
}
|
||||
|
||||
export interface SelectProps<T = any> extends ReactSelectProps<T, boolean>, CreatableProps<T, boolean> {
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
themeName?: "dark" | "light" | "outlined" | "lens";
|
||||
value?: T;
|
||||
lightTheme?: boolean; // Forced light theme, may be used for dialogs which is always "bright"
|
||||
menuClass?: string;
|
||||
@ -51,7 +55,7 @@ export class Select extends React.Component<SelectProps> {
|
||||
}
|
||||
|
||||
@computed get lightTheme() {
|
||||
return this.props.lightTheme || ThemeStore.getInstance().activeTheme.type == "light";
|
||||
return this.props.lightTheme || this.props.themeName == "light" || ThemeStore.getInstance().activeTheme.type == "light";
|
||||
}
|
||||
|
||||
private styles: Styles<OptionTypeBase, boolean> = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user