-
Notifications
You must be signed in to change notification settings - Fork 17
Removing getSchemaContext
#357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
b31f0e5
4b0fd6e
f8c0ce5
8887217
923d136
568c915
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,6 @@ import { useLocation } from "react-router-dom"; | |
|
|
||
| import { viewerRpcs } from "../../../common/ViewerConfig"; | ||
| import { | ||
| getSchemaContext, | ||
| unifiedSelectionStorage, | ||
| } from "../../../selectionStorage"; | ||
| import { IModelMergeItemsProvider } from "../../extensions"; | ||
|
|
@@ -68,7 +67,7 @@ export const ViewerRoute = () => { | |
| getLabel: () => ModelsTreeComponent.getLabel(), | ||
| render: (props) => ( | ||
| <ModelsTreeComponent | ||
| getSchemaContext={getSchemaContext} | ||
| getSchemaContext={(iModel) => iModel.schemaContext} | ||
| density={props.density} | ||
| selectionStorage={unifiedSelectionStorage} | ||
| selectionMode={"extended"} | ||
|
|
@@ -82,7 +81,7 @@ export const ViewerRoute = () => { | |
| getLabel: () => CategoriesTreeComponent.getLabel(), | ||
| render: (props) => ( | ||
| <CategoriesTreeComponent | ||
| getSchemaContext={getSchemaContext} | ||
| getSchemaContext={(iModel) => iModel.schemaContext} | ||
| density={props.density} | ||
| selectionStorage={unifiedSelectionStorage} | ||
| onPerformanceMeasured={props.onPerformanceMeasured} | ||
|
|
@@ -115,7 +114,7 @@ export const ViewerRoute = () => { | |
| ]} | ||
| enablePerformanceMonitors={true} | ||
| selectionStorage={unifiedSelectionStorage} | ||
| getSchemaContext={getSchemaContext} | ||
| getSchemaContext={(iModel) => iModel.schemaContext} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this prop was removed from
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes. that is right |
||
| /> | ||
| ) : null; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -186,7 +186,7 @@ const App: React.FC = () => { | |
| getLabel: () => ModelsTreeComponent.getLabel(), | ||
| render: (props) => ( | ||
| <ModelsTreeComponent | ||
| getSchemaContext={getSchemaContext} | ||
| getSchemaContext={(iModel) => iModel.schemaContext} | ||
| density={props.density} | ||
| selectionStorage={unifiedSelectionStorage} | ||
| selectionMode={"extended"} | ||
|
|
@@ -200,7 +200,7 @@ const App: React.FC = () => { | |
| getLabel: () => CategoriesTreeComponent.getLabel(), | ||
| render: (props) => ( | ||
| <CategoriesTreeComponent | ||
| getSchemaContext={getSchemaContext} | ||
| getSchemaContext={(iModel) => iModel.schemaContext} | ||
| density={props.density} | ||
| selectionStorage={unifiedSelectionStorage} | ||
| onPerformanceMeasured={props.onPerformanceMeasured} | ||
|
|
@@ -234,7 +234,7 @@ const App: React.FC = () => { | |
| new MeasureToolsUiItemsProvider(), | ||
| ]} | ||
| selectionStorage={unifiedSelectionStorage} | ||
| getSchemaContext={getSchemaContext} | ||
| getSchemaContext={(iModel) => iModel.schemaContext} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this prop was removed from
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes that is right. |
||
| /> | ||
| </div> | ||
| ); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.