Add AppState to mstp
parent
fd24d19021
commit
9f1658e40d
|
@ -63,7 +63,7 @@ export class Settings extends PureComponent<StateProps, State> {
|
|||
}
|
||||
}
|
||||
|
||||
const mstp = ({me}) => ({
|
||||
const mstp = ({me}: AppState) => ({
|
||||
me,
|
||||
})
|
||||
|
||||
|
|
|
@ -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,
|
||||
})
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue