Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb committed Apr 27, 2024
1 parent 91d180b commit 4be29a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ const calculateNewMax = (

/**
* transform T | [T, T] to [T, T]
* @param val
* @returns
* @param val
* @returns
*/
const normalizeToPair = <T,>(val: T | [T, T]): [T, T] => (Array.isArray(val) ? val : [val, val]);

Expand Down Expand Up @@ -397,7 +397,7 @@ export class Resizable extends React.PureComponent<ResizableProps, State> {
super(props);
this.state = {
isResizing: false,
width: this.propsSize?.width ?? 'auto',
width: this.propsSize?.width ?? 'auto',
height: this.propsSize?.height ?? 'auto',
direction: 'right',
original: {
Expand Down

0 comments on commit 4be29a5

Please sign in to comment.