Skip to content

Commit

Permalink
move to makeStyles to fix publish npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ds committed Jan 5, 2024
1 parent 9c57452 commit fc11685
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
9 changes: 8 additions & 1 deletion frontend/src/components/map/MapCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@ import PipelineComponentSymbol from '../symbols/PipelineComponentSymbol';
import { useModKeyPressedConsumer } from '../KeyPressContext';
import PositionCalculator from './PositionCalculator';
import { featureSwitches } from '../../constants/featureswitches';
import styles from '../../styles/MapCanvas.module.css';
import MapAccelerator from './MapAccelerator';
import AcceleratorSymbol from '../symbols/AcceleratorSymbol';
import { makeStyles } from '@mui/styles';

const useStyles = makeStyles(() => ({
mapCanvas: {
userSelect: 'none',
},
}));

function MapCanvas(props) {
const styles = useStyles();
const {
mapComponents,
mapSubMaps,
Expand Down
3 changes: 0 additions & 3 deletions frontend/src/styles/MapCanvas.module.css

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/wmlandscape/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ import {
} from '../../src/components/KeyPressContext';
import QuickAdd from '../../src/components/actions/QuickAdd';
import PipelineVersion2 from '../../src/components/map/PipelineVersion2';
import styles from '../../src/styles/MapCanvas.module.css';

export {
styles,
MapBackground,
MapEvolution,
MapGraphics,
Expand Down

0 comments on commit fc11685

Please sign in to comment.