Commit 28767c06 authored by Kitti Piyapan's avatar Kitti Piyapan Committed by Tim Neutkens

Change file name lib on example keep the same format (#3227)

Change file name format on folder lib like /examples/with-apollo and /examples/with-apollo-and-redux
parent ba740460
...@@ -3,7 +3,7 @@ import cookie from 'cookie' ...@@ -3,7 +3,7 @@ import cookie from 'cookie'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import { ApolloProvider, getDataFromTree } from 'react-apollo' import { ApolloProvider, getDataFromTree } from 'react-apollo'
import initApollo from './init-apollo' import initApollo from './initApollo'
function parseCookies (ctx = {}, options = {}) { function parseCookies (ctx = {}, options = {}) {
return cookie.parse( return cookie.parse(
......
...@@ -15,9 +15,9 @@ ...@@ -15,9 +15,9 @@
"isomorphic-fetch": "^2.2.1", "isomorphic-fetch": "^2.2.1",
"next": "latest", "next": "latest",
"prop-types": "^15.5.10", "prop-types": "^15.5.10",
"react": "^15.5.4", "react": "^16.0.0",
"react-apollo": "^1.1.3", "react-apollo": "^1.1.3",
"react-dom": "^15.5.4" "react-dom": "^16.0.0"
}, },
"devDependencies": { "devDependencies": {
"ava": "^0.19.1", "ava": "^0.19.1",
......
...@@ -4,9 +4,9 @@ import cookie from 'cookie' ...@@ -4,9 +4,9 @@ import cookie from 'cookie'
import Link from 'next/link' import Link from 'next/link'
import gql from 'graphql-tag' import gql from 'graphql-tag'
import withData from '../lib/with-data' import withData from '../lib/withData'
import redirect from '../lib/redirect' import redirect from '../lib/redirect'
import checkLoggedIn from '../lib/check-logged-in' import checkLoggedIn from '../lib/checkLoggedIn'
class CreateAccount extends React.Component { class CreateAccount extends React.Component {
static async getInitialProps (context, apolloClient) { static async getInitialProps (context, apolloClient) {
......
...@@ -2,9 +2,9 @@ import React from 'react' ...@@ -2,9 +2,9 @@ import React from 'react'
import cookie from 'cookie' import cookie from 'cookie'
import { withApollo, compose } from 'react-apollo' import { withApollo, compose } from 'react-apollo'
import withData from '../lib/with-data' import withData from '../lib/withData'
import redirect from '../lib/redirect' import redirect from '../lib/redirect'
import checkLoggedIn from '../lib/check-logged-in' import checkLoggedIn from '../lib/checkLoggedIn'
class Index extends React.Component { class Index extends React.Component {
static async getInitialProps (context, apolloClient) { static async getInitialProps (context, apolloClient) {
......
...@@ -4,9 +4,9 @@ import cookie from 'cookie' ...@@ -4,9 +4,9 @@ import cookie from 'cookie'
import Link from 'next/link' import Link from 'next/link'
import gql from 'graphql-tag' import gql from 'graphql-tag'
import withData from '../lib/with-data' import withData from '../lib/withData'
import redirect from '../lib/redirect' import redirect from '../lib/redirect'
import checkLoggedIn from '../lib/check-logged-in' import checkLoggedIn from '../lib/checkLoggedIn'
class Signin extends React.Component { class Signin extends React.Component {
static async getInitialProps (context, apolloClient) { static async getInitialProps (context, apolloClient) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment