Browse Source

type: remove unnecessary code (#43439)

pull/43449/head
thinkasany 1 year ago
committed by GitHub
parent
commit
9b03ce476d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/button/button-group.tsx

4
components/button/button-group.tsx

@ -1,9 +1,9 @@
import classNames from 'classnames';
import * as React from 'react';
import warning from '../_util/warning';
import { ConfigContext } from '../config-provider';
import type { SizeType } from '../config-provider/SizeContext';
import { useToken } from '../theme/internal';
import warning from '../_util/warning';
export interface ButtonGroupProps {
size?: SizeType;
@ -13,7 +13,7 @@ export interface ButtonGroupProps {
children?: React.ReactNode;
}
export const GroupSizeContext = React.createContext<SizeType | undefined>(undefined);
export const GroupSizeContext = React.createContext<SizeType>(undefined);
const ButtonGroup: React.FC<ButtonGroupProps> = (props) => {
const { getPrefixCls, direction } = React.useContext(ConfigContext);

Loading…
Cancel
Save