mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
fix: fix typo (#39089)
This commit is contained in:
parent
cfc84d4500
commit
6e9fed530b
@ -71,7 +71,7 @@ const defaultGetPrefixCls = (suffixCls?: string, customizePrefixCls?: string) =>
|
||||
return suffixCls ? `ant-${suffixCls}` : 'ant';
|
||||
};
|
||||
|
||||
// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will case circular dependency.
|
||||
// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will cause circular dependency.
|
||||
export const ConfigContext = React.createContext<ConfigConsumerProps>({
|
||||
// We provide a default function for Context without provider
|
||||
getPrefixCls: defaultGetPrefixCls,
|
||||
@ -98,7 +98,7 @@ export function withConfigConsumer<ExportProps extends BasicExportProps>(config:
|
||||
return function withConfigConsumerFunc<ComponentDef>(
|
||||
Component: React.ComponentType<ExportProps>,
|
||||
): React.FC<ExportProps> & ComponentDef {
|
||||
// Wrap with ConfigConsumer. Since we need compatible with react 15, be care when using ref methods
|
||||
// Wrap with ConfigConsumer. Since we need compatible with react 15, be careful when using ref methods
|
||||
const SFC = ((props: ExportProps) => (
|
||||
<ConfigConsumer>
|
||||
{(configProps: ConfigConsumerProps) => {
|
||||
|
Loading…
Reference in New Issue
Block a user