Skip to content

Commit

Permalink
uniq (#21522)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo837 committed Feb 22, 2020
1 parent 26dd6f7 commit bb335bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion site/theme/template/Color/ColorPatterns.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react';
import uniq from 'lodash/uniq';
import { generate } from '@ant-design/colors';
import ColorBlock from './ColorBlock';

export default function ColorPatterns({ color }) {
return generate(color).map((colorString, i) => (
return uniq(generate(color)).map((colorString, i) => (
<ColorBlock color={colorString} index={i + 1} key={colorString} />
));
}

0 comments on commit bb335bc

Please sign in to comment.