Skip to content

Commit 0769e64

Browse files
togo01BOCOVO
authored andcommitted
Remove PropTypes in FitToView.tsx
1 parent ed4ebef commit 0769e64

File tree

1 file changed

+1
-5
lines changed
  • packages/json-table-schema-visualizer/src/components/Toolbar/FitToView

1 file changed

+1
-5
lines changed
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
import { ExpandIcon } from "lucide-react";
2-
import PropTypes from "prop-types";
32

43
import ToolbarButton from "../Button";
54

65
interface FitToViewButtonProps {
76
onClick: () => void;
87
}
98

10-
const FitToViewButton: React.FC<FitToViewButtonProps> = ({ onClick }) => {
9+
const FitToViewButton = ({ onClick } : FitToViewButtonProps) => {
1110
return (
1211
<ToolbarButton onClick={onClick} title="Fit-to-view">
1312
<ExpandIcon />
1413
<span className="ml-2">Fit To View</span>
1514
</ToolbarButton>
1615
);
1716
};
18-
FitToViewButton.propTypes = {
19-
onClick: PropTypes.func.isRequired,
20-
};
2117

2218
export default FitToViewButton;

0 commit comments

Comments
 (0)