Skip to content

Commit d851e45

Browse files
committed
fix: build toc modal error
1 parent 4f4fe07 commit d851e45

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/webapp/src/components/pages/document/layouts/MobileLayout.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import BottomSheet from '@components/BottomSheet'
1111
import useVirtualKeyboard from '@hooks/useVirtualKeyboard'
1212
import ToolbarMobile from '../components/toolbarMobile/ToolbarMobile'
1313

14-
const MobileLeftSidePanel = ({ filterModalRef }: any) => {
14+
const MobileLeftSidePanel = () => {
1515
return (
1616
<ModalDrawer modalId="mobile_left_side_panel" width={80}>
17-
<TocModal filterModalRef={filterModalRef} />
17+
<TocModal />
1818
</ModalDrawer>
1919
)
2020
}
@@ -26,7 +26,6 @@ const MobileLayout = () => {
2626
}
2727
} = useStore((state) => state)
2828

29-
const filterModalRef = useRef<HTMLDivElement>(null)
3029
const deviceClass = isMobile ? 'm_mobile' : 'm_desktop'
3130

3231
const isHistoryView = useHashRouter()
@@ -39,7 +38,7 @@ const MobileLayout = () => {
3938
<div className="sticky top-0 z-20 w-full bg-white">
4039
<MobilePadTitle />
4140
</div>
42-
<MobileLeftSidePanel filterModalRef={filterModalRef} />
41+
<MobileLeftSidePanel />
4342
<MobileEditor />
4443
<EditFAB />
4544
<BottomSheet />

0 commit comments

Comments
 (0)