mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-22 22:48:29 +08:00
c31fc76443
* chore: fix zIndex logic * chore: detect if needed * docs: update bug version * test: update snapshot * test: update snapshot * test: update snapshot
10 lines
228 B
TypeScript
10 lines
228 B
TypeScript
import React from 'react';
|
|
|
|
const zIndexContext = React.createContext<number | undefined>(undefined);
|
|
|
|
if (process.env.NODE_ENV !== 'production') {
|
|
zIndexContext.displayName = 'zIndexContext';
|
|
}
|
|
|
|
export default zIndexContext;
|