bito-code-review[bot] commented on code in PR #35525:
URL: https://github.com/apache/superset/pull/35525#discussion_r2406318457
##########
superset-frontend/plugins/legacy-preset-chart-deckgl/src/DeckGLContainer.tsx:
##########
@@ -33,7 +33,7 @@ import {
useRef,
} from 'react';
import { isEqual } from 'lodash';
-import { StaticMap } from 'react-map-gl';
+import StaticMap from 'react-map-gl/mapbox';
Review Comment:
<div>
<div id="suggestion">
<div id="issue"><b>Deprecated component usage</b></div>
<div id="fix">
The import is using the deprecated `StaticMap` component which has been
removed in react-map-gl v8. Based on the package.json, this project uses
react-map-gl ^8.0.4, where `StaticMap` and `InteractiveMap` have been replaced
with a unified `Map` component. Update the import to use `Map` from
'react-map-gl/mapbox' instead of the deprecated `StaticMap`. This affects
downstream usage in the `DeckGLContainer` component where `StaticMap` is
rendered as a child of `DeckGL`.
</div>
<details>
<summary>
<b>Code suggestion</b>
</summary>
<blockquote>Check the AI-generated fix before applying</blockquote>
<div id="code">
```suggestion
import Map from 'react-map-gl/mapbox';
```
</div>
</details>
</div>
<small><i>Code Review Run <a
href=https://github.com/apache/superset/pull/35525#issuecomment-3371619846>#51517a</a></i></small>
</div>
---
Should Bito avoid suggestions like this for future reviews? (<a
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
- [ ] Yes, avoid them
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]