Skip to content

Instantly share code, notes, and snippets.

@EnetoJara
Created May 4, 2020 13:04
Show Gist options
  • Save EnetoJara/1c021aadd5978cfd840b72732025c719 to your computer and use it in GitHub Desktop.
Save EnetoJara/1c021aadd5978cfd840b72732025c719 to your computer and use it in GitHub Desktop.
import { connect } from "react-redux";
import { AppState } from "@eneto/api-client";
import { LandingPage } from "../components/lists";
import { lists } from "../modules/lists";
import { listsAction } from "../modules/lists/lists-actions";
const stateToProps = (state: AppState) => ({
lists: [...lists(state)],
});
const dispatchToProps = {
getListsRequests: listsAction,
getListRequests: listsAction,
postList: listsAction,
};
export default connect(stateToProps, dispatchToProps)(LandingPage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment