Browse Source

type: remove useless assertion (#43474)

pull/43481/head
thinkasany 1 year ago
committed by GitHub
parent
commit
a92d20e06e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/date-picker/generatePicker/generateSinglePicker.tsx
  2. 4
      components/layout/layout.tsx

2
components/date-picker/generatePicker/generateSinglePicker.tsx

@ -156,7 +156,7 @@ export default function generatePicker<DateType>(generateConfig: GenerateConfig<
[`${prefixCls}-borderless`]: !bordered,
},
getStatusClassNames(
prefixCls as string,
prefixCls,
getMergedStatus(contextStatus, customStatus),
hasFeedback,
),

4
components/layout/layout.tsx

@ -57,7 +57,7 @@ const Basic = React.forwardRef<HTMLElement, BasicPropsWithTagName>((props, ref)
const { getPrefixCls } = React.useContext(ConfigContext);
const prefixCls = getPrefixCls('layout', customizePrefixCls);
const [wrapSSR, hashId] = useStyle(prefixCls as string);
const [wrapSSR, hashId] = useStyle(prefixCls);
const prefixWithSuffixCls = suffixCls ? `${prefixCls}-${suffixCls}` : prefixCls;
@ -91,7 +91,7 @@ const BasicLayout = React.forwardRef<HTMLElement, BasicPropsWithTagName>((props,
const { getPrefixCls, layout } = React.useContext(ConfigContext);
const prefixCls = getPrefixCls('layout', customizePrefixCls);
const [wrapSSR, hashId] = useStyle(prefixCls as string);
const [wrapSSR, hashId] = useStyle(prefixCls);
const classString = classNames(
prefixCls,
{

Loading…
Cancel
Save