Skip to content

Commit

Permalink
Working version but workflow is having an issue with typescript stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhymlore committed Oct 19, 2023
1 parent 6c041c7 commit 9cc7d3d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/mapbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ import CssBaseline from '@mui/material/CssBaseline';
import Container from '@mui/material/Container';
import Autocomplete from '@mui/material/Autocomplete';
import TextField from '@mui/material/TextField';
import Box from '@mui/material/Box';
import '../app/globals.css';
import { ThemeProvider, createTheme} from '@mui/material/styles';
import * as mapboxgl from 'mapbox-gl';
import mapboxgl from 'mapbox-gl';


type MapboxMap = mapboxgl.Map;

interface Institution {
name: string;
Expand All @@ -35,7 +36,7 @@ interface Institution {
export const GlobeComponent = () => {
const [anchorEl, setAnchorEl] = useState<Element | null>(null);
const [popoverContent, setPopoverContent] = useState<string>('');
const mapRef = useRef<MapboxMap | null>(null);
const mapRef = useRef<mapboxgl.Map | null>(null);
const [institutionData, setInstitutionData] = useState<Institution[]>([]);

const theme = createTheme({
Expand Down Expand Up @@ -196,7 +197,7 @@ export const GlobeComponent = () => {
<Typography sx={{ padding: 2 }} dangerouslySetInnerHTML={{ __html: popoverContent }} />
</Popover>

<div id={'map'}></div>
<Box id={'map'} />
</Container>
</ThemeProvider>
);
Expand Down

0 comments on commit 9cc7d3d

Please sign in to comment.