Skip to content

Commit

Permalink
fix mapControlComponent: undoIcon removed
Browse files Browse the repository at this point in the history
  • Loading branch information
NSUWAL123 committed Jan 24, 2024
1 parent 3990896 commit c693038
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ const MapControlComponent = ({ map, hasEditUndo }) => {
/>
),
},
{
id: 'Undo',
icon: <AssetModules.UndoIcon style={{ fontSize: '20px' }} className="fmtm-text-[#666666]" />,
},
];

const handleOnClick = (btnId) => {
Expand All @@ -42,7 +38,6 @@ const MapControlComponent = ({ map, hasEditUndo }) => {
map.getView().setZoom(actualZoom - 1);
} else if (btnId === 'Edit') {
dispatch(CreateProjectActions.SetToggleSplittedGeojsonEdit(!toggleSplittedGeojsonEdit));
} else if (btnId === 'Undo') {
}
};

Expand All @@ -51,9 +46,7 @@ const MapControlComponent = ({ map, hasEditUndo }) => {
{btnList.map((btn) => {
return (
<div key={btn.id} title={btn.id}>
{((btn.id !== 'Edit' && btn.id !== 'Undo') ||
(btn.id === 'Edit' && hasEditUndo) ||
(btn.id === 'Undo' && hasEditUndo)) && (
{((btn.id !== 'Edit' && btn.id !== 'Undo') || (btn.id === 'Edit' && hasEditUndo)) && (
<div
className={` fmtm-p-1 fmtm-rounded-md fmtm-duration-200 fmtm-cursor-pointer ${
toggleSplittedGeojsonEdit && btn.id === 'Edit'
Expand Down

0 comments on commit c693038

Please sign in to comment.