Browse Source

type: optimization type (#41326)

pull/41327/head
maomao 2 years ago
committed by GitHub
parent
commit
241b9465c8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/divider/index.tsx
  2. 2
      components/empty/empty.tsx
  3. 2
      components/empty/simple.tsx

2
components/divider/index.tsx

@ -57,7 +57,7 @@ const Divider: React.FC<DividerProps> = (props) => {
rootClassName,
);
const innerStyle = {
const innerStyle: React.CSSProperties = {
...(hasCustomMarginLeft && { marginLeft: orientationMargin }),
...(hasCustomMarginRight && { marginRight: orientationMargin }),
};

2
components/empty/empty.tsx

@ -2,7 +2,7 @@ import { TinyColor } from '@ctrl/tinycolor';
import * as React from 'react';
import { useToken } from '../theme/internal';
const Empty = () => {
const Empty: React.FC = () => {
const [, token] = useToken();
const bgColor = new TinyColor(token.colorBgBase);

2
components/empty/simple.tsx

@ -3,7 +3,7 @@ import * as React from 'react';
import { useMemo } from 'react';
import { useToken } from '../theme/internal';
const Simple = () => {
const Simple: React.FC = () => {
const [, token] = useToken();
const { colorFill, colorFillTertiary, colorFillQuaternary, colorBgContainer } = token;

Loading…
Cancel
Save