Skip to content

Commit

Permalink
Fix desktop viewer unified imports (#328)
Browse files Browse the repository at this point in the history
* fix unified selection storage imports

* rush change

---------

Co-authored-by: Ben Polinsky <ben-polinsky@users.noreply.github.com>
  • Loading branch information
ben-polinsky and ben-polinsky authored Sep 3, 2024
1 parent d7970dd commit 2cf73e7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/cra-template-desktop-viewer",
"comment": "fix unified selection storage imports",
"type": "patch"
}
],
"packageName": "@itwin/cra-template-desktop-viewer"
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import React, { useCallback, useEffect, useMemo } from "react";
import { BrowserRouter, Outlet, Route, Routes } from "react-router-dom";

import { viewerRpcs } from "../../common/ViewerConfig";
import { unifiedSelectionStorage } from "../../selectionStorage";
import { ITwinViewerApp } from "../app/ITwinViewerApp";
import { SettingsContextProvider } from "../services/SettingsContext";
import { HomeRoute, IModelsRoute, ITwinsRoute, ViewerRoute } from "./routes";
import { unifiedSelectionStorage } from "../selectionStorage";

const App = () => {
window.ITWIN_VIEWER_HOME = window.location.origin;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ import React, { useEffect, useState } from "react";
import { useLocation } from "react-router-dom";

import { viewerRpcs } from "../../../common/ViewerConfig";
import {
getSchemaContext,
unifiedSelectionStorage,
} from "../../../selectionStorage";
import { IModelMergeItemsProvider } from "../../extensions";
import { unifiedSelectionStorage, getSchemaContext } from "../../selectionStorage";

export interface ViewerRouteState {
filePath?: string;
}
Expand Down

0 comments on commit 2cf73e7

Please sign in to comment.