mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +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;
|