Skip to content

Commit

Permalink
avoid some react warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas committed Dec 26, 2024
1 parent 8b11184 commit 86022c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions viewer/components/CenterDisplayWidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Formatter from '../util/formatter.js';
import {useKeyEventHandler} from '../util/GuiHelpers.js';
import NavCompute from "../nav/navcompute";
import {useAvNavSortable} from "../hoc/Sortable";
import {WidgetFrame, WidgetHead} from "./WidgetBase";
import {WidgetFrame, WidgetHead, WidgetProps} from "./WidgetBase";


const CenterDisplayWidget = (props) => {
Expand Down Expand Up @@ -83,16 +83,14 @@ CenterDisplayWidget.storeKeys={
};

CenterDisplayWidget.propTypes={
onClick: PropTypes.func,
className: PropTypes.string,
...WidgetProps,
markerCourse:PropTypes.number,
markerDistance:PropTypes.number,
centerCourse:PropTypes.number,
centerDistance:PropTypes.number,
centerPosition: PropTypes.object,
measurePosition: PropTypes.object,
measureRhumbLine: PropTypes.bool,
dragId: PropTypes.string,
style: PropTypes.object,
mode: PropTypes.string
};
Expand Down
2 changes: 1 addition & 1 deletion viewer/components/UserAppDialog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ItemNameDialog=({iname,resolveFunction,fixedExt,title,mandatory,checkName}
</DialogFrame>
};
ItemNameDialog.propTypes={
iname: PropTypes.oneOfType([PropTypes.string,undefined]),
iname: PropTypes.string,
resolveFunction: PropTypes.func, //must return true to close the dialog
checkName: PropTypes.func, //if provided: return an error text if the name is invalid
title: PropTypes.func, //use this as dialog title
Expand Down

0 comments on commit 86022c7

Please sign in to comment.