fix: should compatible with cssinjs < 1.15 (#44091)

* fix: should compatible with cssinjs <= 1.16

* chore: comment
This commit is contained in:
MadCcc 2023-08-08 10:37:40 +08:00 committed by GitHub
parent e767502bdb
commit 5423649bd9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,6 +75,9 @@ export default function useToken(): [
salt, salt,
override: { override: rootDesignToken, ...components }, override: { override: rootDesignToken, ...components },
getComputedToken, getComputedToken,
// formatToken will not be consumed after 1.15.0 with getComputedToken.
// But token will break if @ant-design/cssinjs is under 1.15.0 without it
formatToken,
}, },
); );