Browse Source

chore(Button): spelling optimization (#43157)

pull/43158/head
kiner-tang(文辉) 1 year ago
committed by GitHub
parent
commit
cc4277eb55
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/button/button.tsx

4
components/button/button.tsx

@ -210,9 +210,9 @@ const InternalButton: React.ForwardRefRenderFunction<
const sizeClassNameMap = { large: 'lg', small: 'sm', middle: undefined };
const sizeFullname = useSize((ctxSize) => customizeSize ?? compactSize ?? groupSize ?? ctxSize);
const sizeFullName = useSize((ctxSize) => customizeSize ?? compactSize ?? groupSize ?? ctxSize);
const sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
const sizeCls = sizeFullName ? sizeClassNameMap[sizeFullName] || '' : '';
const iconType = innerLoading ? 'loading' : icon;

Loading…
Cancel
Save