Skip to content

Commit

Permalink
[google-maps-input] Fix uncentered message on missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent 8392f0d commit c32d8a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/@sanity/google-maps-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@
"sanity-plugin"
],
"dependencies": {
"@sanity/field": "1.150.7",
"@sanity/react-hooks": "1.150.8",
"@sanity/types": "1.150.7",
"classnames": "^2.2.5",
"rxjs": "^6.5.3"
},
"devDependencies": {
"@sanity/base": "1.150.8",
"@sanity/components": "1.150.8",
"@sanity/field": "1.150.7",
"@types/googlemaps": "^3.39.11",
"lodash": "^4.17.15",
"rimraf": "^2.7.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@
display: table-cell;
vertical-align: middle;
text-align: center;
position: relative;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import classNames from 'classnames'
import {Path, Marker} from '@sanity/types'
import config from 'config:@sanity/google-maps-input'
import Button from 'part:@sanity/components/buttons/default'
import Dialog from 'part:@sanity/components/dialogs/default'
Expand Down Expand Up @@ -34,13 +35,13 @@ const getStaticImageUrl = value => {
}

interface InputProps {
markers: unknown[]
markers: Marker[]
level?: number
value?: Geopoint
compareValue?: Geopoint
type: GeopointSchemaType
readOnly?: boolean
onFocus: (path: unknown[]) => void
onFocus: (path: Path) => void
onBlur: () => void
onChange: (patchEvent: unknown) => void
presence: unknown[]
Expand Down

0 comments on commit c32d8a9

Please sign in to comment.