Add AppState to mstp

pull/13155/head
Deniz Kusefoglu 2019-04-03 23:08:48 -07:00
parent fd24d19021
commit 9f1658e40d
3 changed files with 10 additions and 5 deletions

View File

@ -63,7 +63,7 @@ export class Settings extends PureComponent<StateProps, State> {
}
}
const mstp = ({me}) => ({
const mstp = ({me}: AppState) => ({
me,
})

View File

@ -19,7 +19,7 @@ import * as copy from 'src/shared/copy/notifications'
// Types
import {Links} from 'src/types/links'
import {Notification, NotificationFunc} from 'src/types'
import {Notification, NotificationFunc, AppState} from 'src/types'
import {
Columns,
InputType,
@ -141,7 +141,7 @@ class SigninForm extends PureComponent<Props, State> {
}
}
const mstp = ({links}) => ({
const mstp = ({links}: AppState) => ({
links,
})

View File

@ -23,7 +23,12 @@ import Notifications from 'src/shared/components/notifications/Notifications'
// Types
import {ComponentColor, ComponentSize} from '@influxdata/clockface'
import {Notification, NotificationFunc, RemoteDataState} from 'src/types'
import {
Notification,
NotificationFunc,
RemoteDataState,
AppState,
} from 'src/types'
import {Links} from 'src/types/links'
interface State {
@ -164,7 +169,7 @@ export class OnboardingWizardPage extends PureComponent<Props, State> {
}
}
const mstp = ({links}) => ({links})
const mstp = ({links}: AppState) => ({links})
const mdtp = {
notify: notifyAction,