Skip to content

Commit

Permalink
remove delete layer button from expand panel
Browse files Browse the repository at this point in the history
  • Loading branch information
mbwatson committed Jul 25, 2024
1 parent 409cd86 commit d048c0d
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions src/components/trays/layers/layer-card-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import PropTypes from 'prop-types';
import {
Box,
Divider,
FormControl,
FormLabel,
ListItemDecorator,
Expand All @@ -14,16 +13,14 @@ import {
Stack,
} from '@mui/joy';
import {
DeleteForever as RemoveIcon,
FormatPaint as AppearanceIcon,
DataObject as MetadataIcon,
} from '@mui/icons-material';
import { useLayers, useSettings } from '@context';
import { ActionButton } from '@components/buttons';

export const LayerActions = ({ layer }) => {
const { darkMode } = useSettings();
const { removeLayer, setLayerOpacity } = useLayers();
const { setLayerOpacity } = useLayers();

return (
<Tabs defaultValue={0}>
Expand All @@ -45,19 +42,6 @@ export const LayerActions = ({ layer }) => {
Metadata
</Tab>
</TabList>

<Divider orientation="vertical" />

<ActionButton
color="warning"
onClick={ () => removeLayer(layer.id) }
sx={{
borderRadius: 0,
borderBottom: '1px solid var(--joy-palette-divider)',
}}
>
<RemoveIcon />
</ActionButton>
</Stack>

<TabPanel value={ 0 } sx={{
Expand Down

0 comments on commit d048c0d

Please sign in to comment.