File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
frontend/src/app/pages/DashBoardPage/pages Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ import {
2828import useAutoBoardRenderItem from 'app/pages/DashBoardPage/hooks/useAutoBoardRenderItem' ;
2929import useBoardWidthHeight from 'app/pages/DashBoardPage/hooks/useBoardWidthHeight' ;
3030import useGridLayoutMap from 'app/pages/DashBoardPage/hooks/useGridLayoutMap' ;
31- import { useVisibleHidden } from 'app/pages/DashBoardPage/hooks/useVisibleHidden' ;
3231import {
3332 selectLayoutWidgetInfoMapById ,
3433 selectLayoutWidgetMapById ,
@@ -49,7 +48,7 @@ const ResponsiveGridLayout = WidthProvider(Responsive);
4948const mobilePoints = Object . keys ( BREAK_POINT_MAP ) . slice ( 3 ) ;
5049export const AutoBoardCore : React . FC < { boardId : string } > = memo (
5150 ( { boardId } ) => {
52- const visible = useVisibleHidden ( ) ;
51+ // const visible = useVisibleHidden(0 );
5352 const {
5453 margin,
5554 containerPadding,
@@ -143,11 +142,7 @@ export const AutoBoardCore: React.FC<{ boardId: string }> = memo(
143142
144143 return (
145144 < Wrap >
146- < StyledContainer
147- bg = { background }
148- ref = { ref }
149- style = { { visibility : visible } }
150- >
145+ < StyledContainer bg = { background } ref = { ref } >
151146 { sortedLayoutWidgets . length ? (
152147 < div className = "grid-wrap" ref = { gridWrapRef } >
153148 < div className = "grid-wrap" ref = { gridRef } >
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ import {
2929} from 'app/pages/DashBoardPage/constants' ;
3030import useAutoBoardRenderItem from 'app/pages/DashBoardPage/hooks/useAutoBoardRenderItem' ;
3131import useGridLayoutMap from 'app/pages/DashBoardPage/hooks/useGridLayoutMap' ;
32- import { useVisibleHidden } from 'app/pages/DashBoardPage/hooks/useVisibleHidden' ;
3332import { DeviceType } from 'app/pages/DashBoardPage/pages/Board/slice/types' ;
3433import { dispatchResize } from 'app/utils/dispatchResize' ;
3534import debounce from 'lodash/debounce' ;
@@ -61,7 +60,7 @@ const ResponsiveGridLayout = WidthProvider(Responsive);
6160
6261export const AutoBoardEditor : React . FC < { } > = memo ( ( ) => {
6362 const dispatch = useDispatch ( ) ;
64- const visible = useVisibleHidden ( ) ;
63+ // const visible = useVisibleHidden(100 );
6564 const {
6665 margin,
6766 containerPadding,
@@ -180,7 +179,7 @@ export const AutoBoardEditor: React.FC<{}> = memo(() => {
180179 curWH = { curWH }
181180 className = { deviceClassName }
182181 ref = { ref }
183- style = { { visibility : visible } }
182+ // style={{ visibility: visible }}
184183 >
185184 { sortedLayoutWidgets . length ? (
186185 < div className = "grid-wrap" ref = { gridWrapRef } >
You can’t perform that action at this time.
0 commit comments