File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import ReactDOM from "react-dom";
4
4
import styled from "styled-components" ;
5
5
import ResizeObserver , { SizeInfo } from "rc-resize-observer" ;
6
6
7
- const PopupWrapper = styled ( Card ) < { $isPhone : boolean ; size : number [ ] } > `
8
- min-width: ${ ( p ) => p . size [ 0 ] } px ;
9
- max-width: ${ ( p ) => p . size [ 1 ] } px ;
7
+ const PopupWrapper = styled ( Card ) < { $isPhone : boolean ; size : string [ ] } > `
8
+ min-width: ${ ( p ) => p . size [ 0 ] } ;
9
+ max-width: ${ ( p ) => p . size [ 1 ] } ;
10
10
${ ( p ) =>
11
11
p . $isPhone &&
12
12
`
@@ -49,7 +49,7 @@ export interface PopupProps {
49
49
footer ?: React . ReactNode ;
50
50
overlay : any ;
51
51
element : HTMLElement ;
52
- sizeMinMax ?: number [ ] ;
52
+ sizeMinMax ?: string [ ] ;
53
53
}
54
54
55
55
export const MapPopup : FC < PopupProps > = ( {
@@ -61,7 +61,7 @@ export const MapPopup: FC<PopupProps> = ({
61
61
footer,
62
62
overlay,
63
63
element,
64
- sizeMinMax = [ 500 , 750 ] ,
64
+ sizeMinMax = [ "500px" , "750px" ] ,
65
65
} ) => {
66
66
const resizer = ( size : SizeInfo ) => {
67
67
overlay . setOffset ( [ 35 , - size [ "height" ] / 2 ] ) ;
You can’t perform that action at this time.
0 commit comments