Components

Startup

<Startup isAuthenticated startupDone />

Renders the Startup component. This component displays when the app is starting up (i.e. getting auth data).

Constructor

# <Startup isAuthenticated startupDone />

PropTypes:
Name Type Required Description Default
isAuthenticated bool No Indicates if there is an authenticated user
startupDone func Yes Indicates if the app startup is done
Author:

View Source pages/Startup/Startup.js, line 24

Extends

  • Component

Members

# state

Startup component state
Properties:
Name Type Description
windowInnerHeight number The inner height of the window (used to resize the component)

View Source pages/Startup/Startup.js, line 29

Methods

# static mapDispatchToProps(dispatch) → {object}

Passes certain Redux actions to the Startup component as props. This function is used only by the react-redux connect function.
Parameters:
Name Type Description
dispatch function The react-redux dispatch function

View Source pages/Startup/Startup.js, line 111

Redux actions used in the Startup component
object

# static mapStateToProps(state) → {object}

Gets the current state from Redux and passes parts of it to the Startup component as props. This function is used only by the react-redux connect function.
Parameters:
Name Type Description
state object The Redux state

View Source pages/Startup/Startup.js, line 98

Redux state properties used in the Startup component
object

# componentDidUpdate()

Tells Redux when app startup is done

View Source pages/Startup/Startup.js, line 36

# render() → {object}

Renders the Startup component

View Source pages/Startup/Startup.js, line 47

The JSX to render
object