Skip to content

Commit

Permalink
Feature/update mui deps (#188)
Browse files Browse the repository at this point in the history
* restore Changes

* yarn lock changes (cause yarn command)

* Updating mui and emotion and fixing error in LayerBox.tsx caused by non existing CSS Object

* revert LayerBox changes and replace wrong CSSObject type with SxProps

---------

Co-authored-by: jannik brack <jannik.brack@wheregroup.com>
Co-authored-by: Max Tobias Weber <tobias.weber@wheregroup.com>
  • Loading branch information
3 people authored Sep 25, 2024
1 parent 9f0137b commit 71e43c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/MlLayerSwitcher/components/LayerBox.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import { css, CSSObject } from '@emotion/css';
import { css } from '@emotion/css';
import { Box } from '@mui/system';
import ImageLoader from '../../../ui_components/ImageLoader';
import useMapState from '../../../hooks/useMapState';
import { SxProps } from '@mui/material';

interface LayerBoxProps {
mapId?: string;
Expand Down Expand Up @@ -31,7 +32,7 @@ const LayerBox: React.FC<LayerBoxProps> = (props) => {
}
`;

const imageLoaderStyle: CSSObject = {
const imageLoaderStyle: SxProps = {
border: `2px solid ${layers?.[0]?.visible ? '#64c864' : '#fd720f'}`,
borderRadius: '8px',
height: '40px',
Expand Down Expand Up @@ -80,4 +81,4 @@ const LayerBox: React.FC<LayerBoxProps> = (props) => {
);
};

export default LayerBox;
export default LayerBox;

0 comments on commit 71e43c3

Please sign in to comment.