mirror of
https://github.com/pawelmalak/flame.git
synced 2026-03-08 05:23:11 +08:00
Rewritten some parts of redux store to use typescript interfaces
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user