SW-3270 move interactive map to design system or booking flow * wip * wip * merge * wip * add support for locales in design-system * add story for HotelCard * setup alias * . * remove tracking from design-system for hotelcard * pass isUserLoggedIn * export design-system-new-deprecated.css from design-system * Add HotelMarkerByType to Storybook * Add interactive map to Storybook * fix reactintl in vitest * rename env variables * . * fix background colors * add storybook stories for <Link /> * merge * fix tracking for when clicking 'See rooms' in InteractiveMap * Merge branch 'master' of bitbucket.org:scandic-swap/web into SW-3270-move-interactive-map-to-design-system-or-booking-flow * remove deprecated comment Approved-by: Anton Gunnarsson
44 lines
952 B
TypeScript
44 lines
952 B
TypeScript
import type { Meta, StoryObj } from '@storybook/react-vite'
|
|
import { StandaloneHotelCardDialog } from './index'
|
|
|
|
import { fn } from 'storybook/test'
|
|
|
|
const meta: Meta<typeof StandaloneHotelCardDialog> = {
|
|
title: 'Components/StandaloneHotelCardDialog',
|
|
component: StandaloneHotelCardDialog,
|
|
argTypes: {},
|
|
}
|
|
|
|
export default meta
|
|
|
|
type Story = StoryObj<typeof StandaloneHotelCardDialog>
|
|
|
|
export const Default: Story = {
|
|
args: {
|
|
data: {
|
|
name: 'Hotel Name',
|
|
image: {
|
|
url: 'img/img2.jpg',
|
|
alt: 'Alt text',
|
|
},
|
|
coordinates: {
|
|
lat: 0,
|
|
lng: 0,
|
|
},
|
|
chequePrice: null,
|
|
publicPrice: 100,
|
|
memberPrice: 200,
|
|
redemptionPrice: null,
|
|
voucherPrice: null,
|
|
rateType: null,
|
|
currency: 'SEK',
|
|
amenities: [],
|
|
ratings: { tripAdvisor: 5 },
|
|
operaId: '123',
|
|
facilityIds: [],
|
|
hasEnoughPoints: false,
|
|
},
|
|
handleClose: fn(),
|
|
},
|
|
}
|