Browse Source

fix: revert color count (#41111)

pull/41115/head
lijianan 2 years ago
committed by GitHub
parent
commit
53b9559cc6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .dumi/theme/common/Color/Palette.tsx

2
.dumi/theme/common/Color/Palette.tsx

@ -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>>({});

Loading…
Cancel
Save