Last active
February 14, 2019 22:09
-
-
Save bietkul/1fce29142cd8fc8de19ef4dc38c9bca6 to your computer and use it in GitHub Desktop.
ReactiveSearch Integration in Movies Store
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Head from 'next/head'; | |
| import React from 'react'; | |
| import { css } from '@emotion/core'; | |
| import { | |
| node, string, oneOfType, object | |
| } from 'prop-types'; | |
| import { ReactiveBase } from '@appbaseio/reactivesearch'; | |
| import { Layout } from 'antd'; | |
| const layoutCls = css` | |
| background: #152530; | |
| color: #fff; | |
| font-family: Lato; | |
| `; | |
| const Container = ({ children, title = "Movies Store" }) => ( | |
| <Layout css={layoutCls} className="layout"> | |
| <Head> | |
| <title>{title}</title> | |
| </Head> | |
| <ReactiveBase | |
| app="YOUR_APP_NAME" // Your app name for e.g movies-store-app | |
| credentials="YOUR_APP_CREDENTIALS" // API credentials | |
| theme={{ | |
| typography: { | |
| fontFamily: "Lato" | |
| } | |
| }} | |
| analytics | |
| > | |
| {children} | |
| </ReactiveBase> | |
| </Layout> | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment