Advancement on the weather widget

This commit is contained in:
Thomas "ajnart" Camlong
2022-05-15 18:52:29 +02:00
parent 31deb5010f
commit 49d57024b9
4 changed files with 442 additions and 15 deletions

View File

@@ -0,0 +1,22 @@
import withMock from 'storybook-addon-mock';
import WeatherComponent from './WeatherModule';
import mockdata from './mockdata.json';
export default {
title: 'Weather module',
decorators: [withMock],
};
export const Default = (args: any) => <WeatherComponent {...args} />;
Default.parameters = {
mockData: [
{
url: 'https://api.open-meteo.com/v1/forecast',
method: 'GET',
status: 200,
response: {
data: mockdata,
},
},
],
};