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:
parent
78acede8ab
commit
d3c5e2a5ec
10 changed files with 89 additions and 45 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue