Amumu
5 years ago
committed by
GitHub
1 changed files with 2 additions and 1 deletions
@ -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} /> |
|||
)); |
|||
} |
|||
|
Loading…
Reference in new issue