1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-23 21:29:37 +02:00

Rewritten some parts of redux store to use typescript interfaces

This commit is contained in:
unknown 2021-05-11 16:44:05 +02:00
parent 78acede8ab
commit d3c5e2a5ec
10 changed files with 89 additions and 45 deletions

View file

@ -6,7 +6,7 @@ import { connect } from 'react-redux';
import { getApps } from '../../store/actions';
// Typescript
import { App } from '../../interfaces';
import { App, GlobalState } from '../../interfaces';
// CSS
import classes from './Apps.module.css';
@ -49,7 +49,7 @@ const Apps = (props: ComponentProps): JSX.Element => {
)
}
const mapStateToProps = (state: any) => {
const mapStateToProps = (state: GlobalState) => {
return {
apps: state.app.apps,
loading: state.app.loading