diff --git a/components/layout/Sider.tsx b/components/layout/Sider.tsx index 3a015f2b5c..669450e3dd 100644 --- a/components/layout/Sider.tsx +++ b/components/layout/Sider.tsx @@ -1,14 +1,14 @@ +import * as React from 'react'; +import { useContext, useEffect, useRef, useState } from 'react'; import BarsOutlined from '@ant-design/icons/BarsOutlined'; import LeftOutlined from '@ant-design/icons/LeftOutlined'; import RightOutlined from '@ant-design/icons/RightOutlined'; import classNames from 'classnames'; import omit from 'rc-util/lib/omit'; -import * as React from 'react'; -import { useContext, useEffect, useRef, useState } from 'react'; import isNumeric from '../_util/isNumeric'; import { ConfigContext } from '../config-provider'; -import { LayoutContext } from './layout'; +import { LayoutContext } from './context'; const dimensionMaxMap = { xs: '479.98px', diff --git a/components/layout/__tests__/__snapshots__/demo.test.ts.snap b/components/layout/__tests__/__snapshots__/demo.test.ts.snap index 0f1323d240..75d0807d75 100644 --- a/components/layout/__tests__/__snapshots__/demo.test.ts.snap +++ b/components/layout/__tests__/__snapshots__/demo.test.ts.snap @@ -115,7 +115,7 @@ exports[`renders components/layout/demo/basic.tsx correctly 1`] = ` class="ant-space-item" >