1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-20 03:59:36 +02:00

update to latest react version and update client dependencies (#23)

This commit is contained in:
François Darveau 2023-08-03 23:24:56 -04:00 committed by GitHub
parent edc3e6c330
commit 9e19af7d4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 650 additions and 459 deletions

View file

@ -1,20 +1,17 @@
import { useState, useEffect, Fragment } from 'react';
import axios from 'axios';
// Redux
import { Fragment, useEffect, useState } from 'react';
import { useSelector } from 'react-redux';
// Typescript
import { Weather, ApiResponse } from '../../../interfaces';
// CSS
import classes from './WeatherWidget.module.css';
// UI
import { WeatherIcon } from '../../UI';
import { ApiResponse, Weather } from '../../../interfaces';
import { State } from '../../../store/reducers';
import { weatherTemplate } from '../../../utility/templateObjects/weatherTemplate';
import { WeatherIcon } from '../../UI';
import classes from './WeatherWidget.module.css';
// Redux
// Typescript
// CSS
// UI
export const WeatherWidget = (): JSX.Element => {
const { loading: configLoading, config } = useSelector(
(state: State) => state.config