From 8be5f32e1aea8e582105298e4466700ba7eff3e5 Mon Sep 17 00:00:00 2001 From: jane Date: Tue, 10 Nov 2020 12:27:47 +0800 Subject: [PATCH 1/2] Fix: Fix warning from anchor component --- src/app/components/Anchor/AnchorUndraggable.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/Anchor/AnchorUndraggable.jsx b/src/app/components/Anchor/AnchorUndraggable.jsx index d9bd903d2d..e8ace6ee37 100644 --- a/src/app/components/Anchor/AnchorUndraggable.jsx +++ b/src/app/components/Anchor/AnchorUndraggable.jsx @@ -11,7 +11,7 @@ class AnchorUndraggable extends PureComponent { PropTypes.func, PropTypes.string ]), - draggable: PropTypes.bool, + draggable: PropTypes.string, disabled: PropTypes.bool, href: PropTypes.string, onClick: PropTypes.func, From bca53a53cbbb631948496e1b18dc019dd54ba5c0 Mon Sep 17 00:00:00 2001 From: jane Date: Tue, 10 Nov 2020 18:05:01 +0800 Subject: [PATCH 2/2] Refactor: Change draggable attribute to bool type on Anchot componnent --- src/app/components/Anchor/AnchorUndraggable.jsx | 4 ++-- src/app/components/OptionalDropdown/OptionalDropdown.jsx | 1 - src/app/containers/Header/Header.jsx | 1 - src/app/widgets/CNCPath/ImageProcessMode.jsx | 3 +-- src/app/widgets/CncLaserObjectList/ObjectListBox.jsx | 1 - src/app/widgets/CncLaserShared/Transformation.jsx | 2 +- src/app/widgets/LaserParams/ImageProcessMode.jsx | 6 ++---- src/app/widgets/PrintingMaterial/Material.jsx | 1 - .../PrintingVisualizer/VisualizerCameraOperations.jsx | 5 ----- 9 files changed, 6 insertions(+), 18 deletions(-) diff --git a/src/app/components/Anchor/AnchorUndraggable.jsx b/src/app/components/Anchor/AnchorUndraggable.jsx index e8ace6ee37..2797d1f374 100644 --- a/src/app/components/Anchor/AnchorUndraggable.jsx +++ b/src/app/components/Anchor/AnchorUndraggable.jsx @@ -11,7 +11,7 @@ class AnchorUndraggable extends PureComponent { PropTypes.func, PropTypes.string ]), - draggable: PropTypes.string, + draggable: PropTypes.bool, disabled: PropTypes.bool, href: PropTypes.string, onClick: PropTypes.func, @@ -55,7 +55,7 @@ class AnchorUndraggable extends PureComponent { } = this.props; const { componentClass, - draggable = 'false', + draggable = false, ...props } = this.props; const Component = componentClass || 'a'; diff --git a/src/app/components/OptionalDropdown/OptionalDropdown.jsx b/src/app/components/OptionalDropdown/OptionalDropdown.jsx index 1b1e01781b..0c739c5d38 100644 --- a/src/app/components/OptionalDropdown/OptionalDropdown.jsx +++ b/src/app/components/OptionalDropdown/OptionalDropdown.jsx @@ -17,7 +17,6 @@ const OptionalDropdown = (props) => {