mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 10:28:06 +08:00
ea8ed28209
* chore: unified import method * fix lint
12 lines
268 B
TypeScript
12 lines
268 B
TypeScript
import React from 'react';
|
|
import { detectFlexGapSupported } from '../styleChecker';
|
|
|
|
export default () => {
|
|
const [flexible, setFlexible] = React.useState(false);
|
|
React.useEffect(() => {
|
|
setFlexible(detectFlexGapSupported());
|
|
}, []);
|
|
|
|
return flexible;
|
|
};
|