8000 Change file name lib on example keep the same format (#3227) · JavaScriptExpert/next.js@28767c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 28767c0

Browse files
titellertimneutkens
authored andcommitted
Change file name lib on example keep the same format (vercel#3227)
Change file name format on folder lib like /examples/with-apollo and /examples/with-apollo-and-redux
1 parent ba74046 commit 28767c0

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

examples/with-apollo-auth/lib/with-data.js renamed to examples/with-apollo-auth/lib/withData.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import cookie from 'cookie'
33
import PropTypes from 'prop-types'
44
import { ApolloProvider, getDataFromTree } from 'react-apollo'
55

6-
import initApollo from './init-apollo'
6+
import initApollo from './initApollo'
77

88
function parseCookies (ctx = {}, options = {}) {
99
return cookie.parse(

examples/with-apollo-auth/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"isomorphic-fetch": "^2.2.1",
1616
"next": "latest",
1717
"prop-types": "^15.5.10",
18-
"react": "^15.5.4",
18+
"react": "^16.0.0",
1919
"react-apollo": "^1.1.3",
20-
"react-dom": "^15.5.4"
20+
"react-dom": "^16.0.0"
2121
},
2222
"devDependencies": {
2323
"ava": "^0.19.1",

examples/with-apollo-auth/pages/create-account.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import cookie from 'cookie'
44
import Link from 'next/link'
55
import gql from 'graphql-tag'
66

7-
import withData from '../lib/with-data'
7+
import withData from '../lib/withData'
88
import redirect from '../lib/redirect'
9-
import checkLoggedIn from '../lib/check-logged-in'
9+
import checkLoggedIn from '../lib/checkLoggedIn'
1010

1111
class CreateAccount extends React.Component {
1212
static async getInitialProps (context, apolloClient) {

examples/with-apollo-auth/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React from 'react'
22
import cookie from 'cookie'
33
import { withApollo, compose } from 'react-apollo'
44

5-
import withData from '../lib/with-data'
5+
import withData from '../lib/withData'
66
import redirect from '../lib/redirect'
7-
import checkLoggedIn from '../lib/check-logged-in'
7+
import checkLoggedIn from '../lib/checkLoggedIn'
88

99
class Index extends React.Component {
1010
static async getInitialProps (context, apolloClient) {

examples/with-apollo-auth/pages/signin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import cookie from 'cookie'
44
import Link from 'next/link'
55
import gql from 'graphql-tag'
66

7-
import withData from '../lib/with-data'
7+
import withData from '../lib/withData'
88
import redirect from '../lib/redirect'
9-
import checkLoggedIn from '../lib/check-logged-in'
9+
import checkLoggedIn from '../lib/checkLoggedIn'
1010

1111
class Signin extends React.Component {
1212
static async getInitialProps (context, apolloClient) {

0 commit comments

Comments
 (0)
0