         # -- Display the settings form
         else if @props.action is 'settings'
 
-            @renderSettings()
+            Settings
+                key     : 'settings'
+                ref     : 'settings'
+                settings: @state.settings
 
         # -- Error case, shouldn't happen. Might be worth to make it pretty.
         else

        return component


    renderSettings: ->
        return Settings
            ref     : 'settings'
            settings: @state.settings

    getStateFromStores: ->
        return {
            accounts              : AccountStore.getAll()

            canLoadMore:          @state.queryParams.hasNextPage
            loadMoreMessage: -> MessageActionCreator.fetchMoreOfCurrentQuery()

    # Rendering the compose component requires several parameters. The main one
    # are related to the selected account, the selected mailbox and the compose
    # state (classic, draft, reply, reply all or forward).
