refactor(Preview): 对自定义颜色键进行排序以提高一致性
This commit is contained in:
parent
ec93cd5678
commit
ab4af06fd1
@ -107,7 +107,7 @@ interface PreviewBlockProps {
|
||||
|
||||
const PreviewBlock: FC<PreviewBlockProps> = ({ baseline, title }) => {
|
||||
const customSets = useMemo(() => {
|
||||
const colors = keys(baseline.customColors);
|
||||
const colors = keys(baseline.customColors).sort();
|
||||
const elements: ReactNode[] = [];
|
||||
|
||||
for (const key of colors) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user