Skip to content

Commit

Permalink
Merge branch 'dependabot/npm_and_yarn/father-4.3.5' into dengfuping-i…
Browse files Browse the repository at this point in the history
…cons
  • Loading branch information
dengfuping committed Oct 18, 2023
2 parents 3b5ffa9 + 46239d1 commit e43dc9e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
7 changes: 6 additions & 1 deletion packages/design/src/_util/genComponentStyleHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import type { FullToken, GenerateStyle } from 'antd/es/theme/internal';
import { genComponentStyleHook as antGenComponentStyleHook } from 'antd/es/theme/internal';
import type { GlobalToken } from 'antd/es/theme/interface';
import type { OverrideTokenWithoutDerivative } from 'antd/es/theme/util/genComponentStyleHook';
import { useContext } from 'react';
import theme from '../theme';

export type ComponentName = keyof ComponentTokenMap;

Expand All @@ -22,7 +24,10 @@ export function genComponentStyleHook(
},
getDefaultToken
);
const [wrapSSR, hashId] = useStyle(prefixCls);
const [wrapSSR] = useStyle(prefixCls);
// use hashId from useToken, as hashId is '' when hashed is false
// ref: https://github.com/ant-design/ant-design/blob/master/components/theme/useToken.ts#L80
const { hashId } = theme.useToken();
return {
wrapSSR,
hashId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Badge status custom icon 1`] = `
<span
class="ant-badge ant-badge-status css-dev-only-do-not-override-amq5gd"
class="ant-badge ant-badge-status"
style="display: inline-block;"
>
<span
Expand Down Expand Up @@ -53,7 +53,7 @@ exports[`Badge status dot 1`] = `

exports[`Badge status icon 1`] = `
<span
class="ant-badge ant-badge-status css-dev-only-do-not-override-amq5gd"
class="ant-badge ant-badge-status"
style="display: inline-block;"
>
<span
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"LICENSE"
],
"scripts": {
"build": "father build"
"build": "NODE_OPTIONS=--max_old_space_size=4096 father build"
},
"dependencies": {
"@ant-design/cssinjs": "^1.17.2",
Expand Down

0 comments on commit e43dc9e

Please sign in to comment.