Skip to content

Commit

Permalink
feat: Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed May 9, 2024
1 parent 0b31f99 commit 3595fa4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/js/hooks/createStyles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import createMaxMin from 'antd/es/theme/util/maxmin';
import { memo, ReactElement, useId, useMemo } from 'react';
import AbstractCalculator from 'antd/es/theme/util/calc/calculator';
import useToken, { ignore, unitless } from 'antd/es/theme/useToken';
import { AliasToken, OverrideToken } from 'antd/es/theme/interface';
import { AliasToken, GlobalToken, OverrideToken } from 'antd/es/theme/interface';
import { CSSInterpolation, token2CSSVar, unit, useCSSVarRegister, useStyleRegister } from '@ant-design/cssinjs';

interface CSSVar {
Expand Down Expand Up @@ -175,8 +175,7 @@ export default function createStyles<C extends Components = never>(path: string[
}

if (length > 0) {
// @ts-ignore
mergedToken[component] = componentTokens;
mergedToken[component] = componentTokens as GlobalToken[C];
}
}
}
Expand Down

0 comments on commit 3595fa4

Please sign in to comment.