Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed Jul 26, 2024
1 parent dd59c43 commit a72ccf4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useTranslation } from '../i18n/I18n';

import { useSyncExternalLayersState } from './LayersContainer/useSyncExternalLayersState';
import { useModelHandlers } from './LayersContainer/useModelHandlers';
import { DefaultLayersConfiguration, type LayersUrlStateParam } from '../../hooks/types';
import { type DefaultLayersConfiguration, type LayersUrlStateParam } from '../../hooks/types';

export type LayersButtonProps = {
layersState?: LayersUrlStateParam | undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { type ReactElement } from 'react';
import { useTranslation } from '../../i18n/I18n';
import { useModelHandlers } from './useModelHandlers';
import { useSyncExternalLayersState } from './useSyncExternalLayersState';
import { LayersButtonProps } from '../LayersButton';
import { type LayersButtonProps } from '../LayersButton';

export type ModelLayerHandlers = {
cadHandlers: CadModelHandler[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
import { CadModelHandler, Image360CollectionHandler, PointCloudModelHandler } from './ModelHandler';
import { use3dModels } from '../../../hooks/use3dModels';
import { useReveal } from '../../RevealCanvas/ViewerContext';
import { DefaultLayersConfiguration, type LayersUrlStateParam } from '../../../hooks/types';
import { type DefaultLayersConfiguration, type LayersUrlStateParam } from '../../../hooks/types';
import { use3DModelName } from '../../../query/use3DModelName';

export type UpdateModelHandlersCallback = (
Expand Down Expand Up @@ -130,7 +130,7 @@ function setDefaultConfigOnNewHandlers(
newHandlers: ModelLayerHandlers,
modelHandlers: ModelLayerHandlers,
defaultLayersConfig: DefaultLayersConfiguration | undefined
) {
): void {
newHandlers.cadHandlers.forEach((newHandler) => {
if (!modelHandlers.cadHandlers.some((oldHandler) => oldHandler.isSame(newHandler))) {
newHandler.setVisibility(defaultLayersConfig?.cad ?? true);
Expand Down

0 comments on commit a72ccf4

Please sign in to comment.