Skip to content

Commit

Permalink
finish merge
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <dxho@amazon.com>
  • Loading branch information
derek-ho committed Apr 27, 2023
1 parent dbc7976 commit dfd8582
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions public/components/custom_panels/custom_panel_view_so.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,27 +258,10 @@ export const CustomPanelViewSO = (props: CustomPanelViewProps) => {
};

// toggle between panel edit mode
<<<<<<< HEAD
const editPanel = (editType: string) => {
setIsEditing(!isEditing);
if (editType === 'cancel') dispatch(fetchPanel(panelId));
setEditActionType(editType);
=======

const startEdit = () => {
setIsEditing(true);
};

const applyEdits = useCallback(() => {
dispatch(updatePanel(panel, '', ''));
setIsEditing(false);
setEditActionType('save');
}, [panel]);

const cancelEdit = () => {
dispatch(fetchPanel(panelId));
setIsEditing(false);
>>>>>>> 22977feb (code cleanup)
};

const closeFlyout = () => {
Expand Down

0 comments on commit dfd8582

Please sign in to comment.