diff --git a/src/components/modules/weather/WeatherModule.story.tsx b/src/components/modules/weather/WeatherModule.story.tsx deleted file mode 100644 index 2681443ec..000000000 --- a/src/components/modules/weather/WeatherModule.story.tsx +++ /dev/null @@ -1,22 +0,0 @@ -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) => ; -Default.parameters = { - mockData: [ - { - url: 'https://api.open-meteo.com/v1/forecast', - method: 'GET', - status: 200, - response: { - data: mockdata, - }, - }, - ], -}; diff --git a/src/components/modules/weather/mockdata.json b/src/components/modules/weather/mockdata.json deleted file mode 100644 index b9e3795b1..000000000 --- a/src/components/modules/weather/mockdata.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "current_weather": { - "winddirection": 121, - "windspeed": 12.7, - "time": "2022-05-15T14:00", - "weathercode": 3, - "temperature": 28.7 - }, - "utc_offset_seconds": 3600, - "latitude": 48.86, - "elevation": 46.1875, - "longitude": 2.3599997, - "generationtime_ms": 0.36406517028808594, - "daily_units": { - "temperature_2m_max": "°C", - "temperature_2m_min": "°C", - "time": "iso8601", - "weathercode": "wmo code" - }, - "daily": { - "temperature_2m_max": [ - 29.1, - 25.4, - 28.2, - 29.7, - 24.6, - 27.1, - 22.9 - ], - "time": [ - "2022-05-15", - "2022-05-16", - "2022-05-17", - "2022-05-18", - "2022-05-19", - "2022-05-20", - "2022-05-21" - ], - "temperature_2m_min": [ - 14.3, - 16.9, - 17.2, - 17.7, - 19.2, - 19.1, - 14 - ], - "weathercode": [ - 95, - 3, - 3, - 3, - 3, - 80, - 3 - ] - } -} \ No newline at end of file