Skip to content

Commit

Permalink
Add themeProvider to mapConatainer
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Feb 13, 2024
1 parent 398905e commit 7ffb197
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/src/map-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

// libraries
import React, {Component, createRef, useMemo} from 'react';
import styled, {withTheme} from 'styled-components';
import styled, {ThemeProvider, withTheme} from 'styled-components';
import {Map, MapRef} from 'react-map-gl/maplibre';
import {PickInfo} from '@deck.gl/core/lib/deck';
import DeckGL from '@deck.gl/react';
Expand Down Expand Up @@ -1001,7 +1001,7 @@ export default function MapContainerFactory(
return null;
}
return (
<>
<ThemeProvider theme={theme}>
<MapControl
mapState={mapState}
datasets={datasets}
Expand Down Expand Up @@ -1081,7 +1081,7 @@ export default function MapContainerFactory(
datasetAttributions={datasetAttributions}
/>
) : null}
</>
</ThemeProvider>
);
}

Expand Down

0 comments on commit 7ffb197

Please sign in to comment.