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:
parent
edc3e6c330
commit
9e19af7d4c
30 changed files with 650 additions and 459 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue