Skip to content

Commit

Permalink
Fix Cropper defaultProps types (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
cvolant authored Dec 4, 2021
1 parent 8a7d3d3 commit 161f652
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class Cropper extends React.Component<CropperProps, State> {
aspect: 4 / 3,
maxZoom: MAX_ZOOM,
minZoom: MIN_ZOOM,
cropShape: 'rect',
objectFit: 'contain',
cropShape: 'rect' as const,
objectFit: 'contain' as const,
showGrid: true,
style: {},
classes: {},
Expand Down

0 comments on commit 161f652

Please sign in to comment.