\n
\n {CLOUD ? (\n <>\n Version {VERSION}{' '}\n {GIT_SHA && ({GIT_SHA.slice(0, 7)})
}\n >\n ) : (\n \n )}\n
\n
\n )\n }\n\n private get style() {\n if (this.props.widthPixels) {\n return {width: `${this.props.widthPixels}px`}\n }\n }\n}\n\nexport default VersionInfo\n","import {\n AppState,\n TimeZone,\n Theme,\n NavBarState,\n VersionInfo,\n FlowsCTA,\n} from 'src/types'\n\nexport const timeZone = (state: AppState): TimeZone =>\n state.app.persisted.timeZone || ('Local' as TimeZone)\n\nexport const theme = (state: AppState): Theme =>\n state.app.persisted.theme || ('dark' as Theme)\n\nexport const navbarMode = (state: AppState): NavBarState =>\n state.app.persisted.navBarState || ('collapsed' as NavBarState)\n\nexport const getVersionInfo = (state: AppState): VersionInfo =>\n state.app.persisted.versionInfo || ({} as VersionInfo)\n\nexport const hasUpdatedTimeRangeInVEO = (state: AppState): boolean =>\n state.app.ephemeral.hasUpdatedTimeRangeInVEO || false\n\nexport const getPresentationMode = (state: AppState): boolean =>\n state.app.ephemeral.inPresentationMode || false\n\nexport const getFlowsCTA = (state: AppState): FlowsCTA =>\n state.app.persisted.flowsCTA ||\n ({explorer: true, tasks: true, alerts: true} as FlowsCTA)\n","// Libraries\nimport React, {PureComponent, ChangeEvent} from 'react'\nimport {withRouter, RouteComponentProps} from 'react-router-dom'\nimport {connect, ConnectedProps} from 'react-redux'\nimport {get} from 'lodash'\n\n// Components\nimport {Form, Input, Button, Grid} from '@influxdata/clockface'\n\n// APIs\nimport {postSignin} from 'src/client'\n\n// Actions\nimport {notify as notifyAction} from 'src/shared/actions/notifications'\n\n// Constants\nimport * as copy from 'src/shared/copy/notifications'\n\n// Types\nimport {\n Columns,\n InputType,\n ButtonType,\n ComponentSize,\n ComponentColor,\n} from '@influxdata/clockface'\n\n// Decorators\nimport {ErrorHandling} from 'src/shared/decorators/errors'\n\nexport interface OwnProps {\n notify: typeof notifyAction\n}\n\ninterface State {\n username: string\n password: string\n}\n\ntype ReduxProps = ConnectedProps