Fix/linting * fix import issues and add lint check no-extraneous-dependencies * fix use type HotelType instead of string Approved-by: Anton Gunnarsson
44 lines
953 B
TypeScript
44 lines
953 B
TypeScript
import type { Meta, StoryObj } from '@storybook/nextjs-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(),
|
|
},
|
|
}
|