How to use the fluxible-addons-react.connectToStores function in fluxible-addons-react

To help you get started, we’ve selected a few fluxible-addons-react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github slidewiki / slidewiki-platform / components / Header / Header.js View on Github external
<div>
                        
                    </div>
                
            
        );
    }
}


Header.contextTypes = {
    executeAction: PropTypes.func.isRequired,
    getUser: PropTypes.func
};

Header = connectToStores(Header, [UserProfileStore], (context, props) =&gt; {
    return {
        UserProfileStore: context.getStore(UserProfileStore).getState()
    };
});

export default Header;
github slidewiki / slidewiki-platform / components / User / UserProfile / UserGroupEdit.js View on Github external
<div>
                            {userlist}
                        </div>
                    
                
            
        );
    }
}

UserGroupEdit.contextTypes = {
    executeAction: React.PropTypes.func.isRequired
};

UserGroupEdit = connectToStores(UserGroupEdit, [UserProfileStore], (context, props) =&gt; {
    return {
        UserProfileStore: context.getStore(UserProfileStore).getState()
    };
});

export default UserGroupEdit;
github slidewiki / slidewiki-platform / components / Home / StaticPage.js View on Github external
{/*<div>
			    <img alt="" src="/assets/images/home/banner.jpg">
			</div>*/}
			
			
			);
    }
}

StaticPage.contextTypes = {
    intl: PropTypes.object.isRequired,
    getUser: PropTypes.func.isRequired,
    executeAction: PropTypes.func.isRequired
};

StaticPage = connectToStores(StaticPage, [UserProfileStore], (context, props) =&gt; {
    return {
        UserProfileStore: context.getStore(UserProfileStore).getState()
    };
});

export default StaticPage;
github ali1k / ld-r / components / resource / CSVMappingResource.js View on Github external
{this.state.status === 2 ?
                        <div>
                            
                        </div>
                        : null
                    }
                
            
        );
    }
}
CSVMappingResource.contextTypes = {
    executeAction: PropTypes.func.isRequired,
    getUser: PropTypes.func
};
CSVMappingResource = connectToStores(CSVMappingResource, [ImportStore], function(context, props) {
    return {ImportStore: context.getStore(ImportStore).getState()};
});
export default CSVMappingResource;
github slidewiki / slidewiki-platform / components / Deck / ContentPanel / SlideModes / SlideViewPanel / SlideViewPanel.js View on Github external
overflowX: 'auto',
            position: 'relative'
        };
        return (
            <div>
                {this.slideContentView || <div style="{loadStyle}"><div>Loading</div></div>}
            </div>
        );
    }
}

SlideViewPanel.contextTypes = {
    executeAction: PropTypes.func.isRequired
};

SlideViewPanel = connectToStores(SlideViewPanel, [SlideViewStore, DeckTreeStore], (context, props) =&gt; {
    return {
        SlideViewStore: context.getStore(SlideViewStore).getState(),
        DeckTreeStore: context.getStore(DeckTreeStore).getState()
    };
});

export default SlideViewPanel;
github slidewiki / slidewiki-platform / components / Deck / ContentModulesPanel / ContentDiffviewPanel / ContentDiffviewPanel.js View on Github external
//TODO load 2 different sub-components DECK / SLIDE_ID

        return (
            <div>
                <h1><span>{diffType}</span> – Diff View</h1>
                <p>Change color palette: </p>
                <p>Diff the current revision [{currentRevision}] against:</p>
                
                <button>DIFF</button>
                <div></div>
            </div>
        );
    }
}

ContentDiffviewPanel = connectToStores(ContentDiffviewPanel, [ContentHistoryStore], (context, props) =&gt; {
    return {ContentHistoryStore: context.getStore(ContentHistoryStore).getState()};
});

export default ContentDiffviewPanel;
github slidewiki / slidewiki-platform / components / Deck / Presentation / PresentationPrint.js View on Github external
}
            return returnList;

        }
        else{
            return (<section>);
        }
    }

}

Presentation.contextTypes = {
    executeAction: React.PropTypes.func.isRequired
};

Presentation = connectToStores(Presentation, [PresentationStore], (context, props) =&gt; {
    return {
        PresentationStore: context.getStore(PresentationStore).getState()
    };
});


export default Presentation;
</section>
github 0x0ece / oscars2016 / www / src / javascript / components / EntityChart.jsx View on Github external
or 
                      <span>
                    
                    <input placeholder="Type #hashtags, @mentions" type="text">                  

                
            
        );
    }
}

EntityChart.contextTypes = {
    executeAction: React.PropTypes.func.isRequired
};

EntityChart = connectToStores(EntityChart, [TwitterStore], (context, props) =&gt; {
    return context.getStore(TwitterStore).getState();
});

export default EntityChart;
</span>
github slidewiki / slidewiki-platform / components / User / UserProfile / Integrations.js View on Github external
);
    }
}

Integrations.contextTypes = {
    executeAction: PropTypes.func.isRequired,
    intl: PropTypes.object.isRequired
};

Integrations = connectToStores(Integrations, [UserProfileStore], (context, props) =&gt; {
    return {
        UserProfileStore: context.getStore(UserProfileStore).getState()
    };
});

export default Integrations;
github ali1k / ld-r / components / dataset / FacetedBrowser.js View on Github external
);
        }


    }
}
FacetedBrowser.contextTypes = {
    executeAction: PropTypes.func.isRequired,
    getUser: PropTypes.func
};
FacetedBrowser = connectToStores(FacetedBrowser, [FacetedBrowserStore], function (context, props) {
    return {
        FacetedBrowserStore: context.getStore(FacetedBrowserStore).getState()
    };
});
export default FacetedBrowser;

fluxible-addons-react

Fluxible addons for use with React

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

65 / 100
Full package analysis

Similar packages