feat(SW-3151): Added original to imageSchema and added transform to a more generic image type
Approved-by: Bianca Widstam Approved-by: Chuma Mcphoy (We Ahead) Approved-by: Matilda Landström
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import type { Meta, StoryObj } from '@storybook/nextjs-vite'
|
||||
import { HotelCard } from './index'
|
||||
|
||||
import { fn } from 'storybook/test'
|
||||
import { RateTypeEnum } from '@scandic-hotels/common/constants/rateType'
|
||||
import { fn } from 'storybook/test'
|
||||
import { Button } from '../Button'
|
||||
import { MaterialIcon } from '../Icons/MaterialIcon'
|
||||
|
||||
@@ -70,7 +70,6 @@ export const Default: Story = {
|
||||
{
|
||||
src: 'img/img2.jpg',
|
||||
alt: 'Alt text',
|
||||
smallSrc: 'img/img2.jpg',
|
||||
caption: 'Caption',
|
||||
},
|
||||
],
|
||||
@@ -97,3 +96,10 @@ export const MapListing: Story = {
|
||||
type: 'mapListing',
|
||||
},
|
||||
}
|
||||
|
||||
export const WithoutImage: Story = {
|
||||
args: {
|
||||
...Default.args,
|
||||
images: [],
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user