mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
Merge pull request #143 from simoleo89/fix/v35-followups
fix: V3.5.0 follow-ups (DraggableWindow useRef, catalog test contract)
This commit is contained in:
@@ -30,7 +30,7 @@ export const DraggableWindow: FC<DraggableWindowProps> = props =>
|
|||||||
const [isDragging, setIsDragging] = useState(false);
|
const [isDragging, setIsDragging] = useState(false);
|
||||||
const [isPositioned, setIsPositioned] = useState(false);
|
const [isPositioned, setIsPositioned] = useState(false);
|
||||||
const [dragHandler, setDragHandler] = useState<HTMLElement>(null);
|
const [dragHandler, setDragHandler] = useState<HTMLElement>(null);
|
||||||
const elementRef = useRef<HTMLDivElement>();
|
const elementRef = useRef<HTMLDivElement>(null);
|
||||||
const bringToTop = useCallback(() => {
|
const bringToTop = useCallback(() => {
|
||||||
let zIndex = 400;
|
let zIndex = 400;
|
||||||
for (const existingWindow of CURRENT_WINDOWS)
|
for (const existingWindow of CURRENT_WINDOWS)
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ describe('useCatalog filter contract', () =>
|
|||||||
'getBuilderFurniPlaceableStatus',
|
'getBuilderFurniPlaceableStatus',
|
||||||
'getNodeById',
|
'getNodeById',
|
||||||
'getNodeByName',
|
'getNodeByName',
|
||||||
|
'getNodesByOfferId',
|
||||||
'openCatalogByType',
|
'openCatalogByType',
|
||||||
'openPageById',
|
'openPageById',
|
||||||
'openPageByName',
|
'openPageByName',
|
||||||
|
|||||||
Reference in New Issue
Block a user