Skip to content

Instantly share code, notes, and snippets.

View madandrija's full-sized avatar

Andrija Jambrovic madandrija

View GitHub Profile
@madandrija
madandrija / gist:5fa9eb7f8ab981b79b19977d29651795
Last active May 26, 2019 10:18
Wix navigation and Dropdown helper
// Register screens
function registerComponentWithAlert(Comp: any, id: string) {
return (props: any) => (
<Provider store={store}>
<Comp {...props} />
<DropdownAlert ref={ref => DropDownHolder.setDropDown(ref, id)} closeInterval={6000} />
</Provider>
);