fix: revert color count (#41111)

This commit is contained in:
lijianan 2023-03-07 21:49:10 +08:00 committed by GitHub
parent 5c1c5f7e9e
commit 53b9559cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@ const Palette: React.FC<PaletteProps> = (props) => {
showTitle,
direction,
dark,
color: { name, count, description, english, chinese } = { name: 'gray', count: 13 },
color: { name, count = 10, description, english, chinese } = { name: 'gray', count: 13 },
} = props;
const [hexColors, setHexColors] = React.useState<Record<PropertyKey, string>>({});
const colorNodesRef = React.useRef<Record<PropertyKey, HTMLDivElement>>({});