mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-02 15:59:38 +08:00
12543277b7
* type: remove tuple * type: remove tuple * type: remove tuple * fix * fix * fix type * fix type * fix type * fix type * fix type * Update ColorPicker.tsx * Update components/badge/utils.tsx Co-authored-by: MadCcc <1075746765@qq.com> * fix type * fix type * fix type * fix * fix * fix type * fix type * fix type * update snap * update snap Co-authored-by: MadCcc <1075746765@qq.com>
7 lines
219 B
TypeScript
7 lines
219 B
TypeScript
import { PresetColorTypes } from '../_util/colors';
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export function isPresetColor(color?: string): boolean {
|
|
return PresetColorTypes.includes(color as any);
|
|
}
|