Skip to content

Commit

Permalink
cr save
Browse files Browse the repository at this point in the history
  • Loading branch information
zbycz committed Feb 11, 2024
1 parent dcadfab commit ed265fc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/components/FeaturePanel/Climbing/ClimbingDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const ClimbingDialog = () => {
setIsEditMode,
isEditMode,
getMachine,
showDebugMenu,
} = useClimbingContext();
const { feature } = useFeatureContext();
const handleSave = useGetHandleSave(setIsEditMode);
Expand Down Expand Up @@ -84,9 +85,15 @@ export const ClimbingDialog = () => {
<Button autoFocus onClick={handleClose}>
Cancel
</Button>
<Button onClick={handleSave} variant="contained" color="primary">
Save
</Button>
{showDebugMenu && (
<Button
onClick={handleSave}
variant="contained"
color="primary"
>
Save
</Button>
)}
</div>
</Flex>
</DialogActions>
Expand Down

0 comments on commit ed265fc

Please sign in to comment.