Merged in fix/linting (pull request #2708)
Fix/linting * fix import issues and add lint check no-extraneous-dependencies * fix use type HotelType instead of string Approved-by: Anton Gunnarsson
This commit is contained in:
+4
-4
@@ -1,8 +1,8 @@
|
||||
import { useIntl } from 'react-intl'
|
||||
|
||||
import { formatPrice } from '@scandic-hotels/common/utils/numberFormatting'
|
||||
import { MaterialIcon } from '@scandic-hotels/design-system/Icons/MaterialIcon'
|
||||
import { Typography } from '@scandic-hotels/design-system/Typography'
|
||||
import { MaterialIcon } from '../../../../Icons/MaterialIcon'
|
||||
import { Typography } from '../../../../Typography'
|
||||
|
||||
import HotelMarker from '../../../Markers/HotelMarker'
|
||||
|
||||
@@ -15,7 +15,7 @@ interface HotelPinProps {
|
||||
hotelAdditionalPrice?: number
|
||||
hotelAdditionalCurrency?: string
|
||||
}
|
||||
|
||||
const NOT_AVAILABLE = '-'
|
||||
export function HotelPin({
|
||||
isActive,
|
||||
hotelPrice,
|
||||
@@ -45,7 +45,7 @@ export function HotelPin({
|
||||
<Typography variant="Body/Paragraph/mdRegular">
|
||||
<p>
|
||||
{isNotAvailable
|
||||
? '—'
|
||||
? NOT_AVAILABLE
|
||||
: formatPrice(
|
||||
intl,
|
||||
hotelPrice,
|
||||
|
||||
Reference in New Issue
Block a user