From 1183ab147c61dfd7f391c16f09804ea15da9c3af Mon Sep 17 00:00:00 2001 From: Jesse Shieh Date: Tue, 25 Jun 2019 13:00:50 -0700 Subject: [PATCH 1/2] Remove unused import I followed the tutorial from scratch and got the following error, which this fixes. ``` ./src/App.js Line 2: 'Resource' is defined but never used no-unused-vars ``` --- docs/Tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Tutorial.md b/docs/Tutorial.md index 6fc2a2ec87a..0f1ebcefd34 100644 --- a/docs/Tutorial.md +++ b/docs/Tutorial.md @@ -66,7 +66,7 @@ Bootstrap the admin app by replacing the `src/App.js` by the following code: ```jsx // in src/App.js import React from 'react'; -import { Admin, Resource } from 'react-admin'; +import { Admin } from 'react-admin'; import jsonServerProvider from 'ra-data-json-server'; const dataProvider = jsonServerProvider('http://jsonplaceholder.typicode.com'); From dcd6a282f3c355bb71022c26f0b7f3cda45a02a3 Mon Sep 17 00:00:00 2001 From: Jesse Shieh Date: Tue, 25 Jun 2019 22:12:09 -0700 Subject: [PATCH 2/2] Also update the deletion diff --- docs/Tutorial.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/Tutorial.md b/docs/Tutorial.md index 0f1ebcefd34..3fb7af9d834 100644 --- a/docs/Tutorial.md +++ b/docs/Tutorial.md @@ -90,7 +90,7 @@ The `` component expects one or more `` child components. Each ```diff // in src/App.js import React from 'react'; --import { Admin, Resource } from 'react-admin'; +-import { Admin } from 'react-admin'; +import { Admin, Resource, ListGuesser } from 'react-admin'; import jsonServerProvider from 'ra-data-json-server';