diff --git a/README.md b/README.md index 3c428102e..d157727f1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > Here is [the working version](https://mate-academy.github.io/react_product-categories-practice/) -You are given a markup for a table of products and 3 arrays. +You are given a markup for a table of products and 3 arrays. Implement as many options below as you can: 1. Render products in a table with id, name, category, and owner (user). @@ -33,7 +33,7 @@ Implement as many options below as you can: ## Instructions - Fork, clone, and run `npm i` - fix the DEMO LINK below (use your GitHub username and the repo name) - - [DEMO LINK](https://.github.io/) + - [DEMO LINK](https://YePolishchuk.github.io/) - implement tasks one by one (You can do it in the `App.jsx`) - `commit`, `push`, and `deploy` after each task - Send a link to your `App.jsx` file to your personal Slack channel (for example #fe_apr22_misha_hrynko) diff --git a/package.json b/package.json index 2bff208d2..b20c34d42 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ }, "scripts": { "start": "mate-scripts start -l", - "build": "mate-scripts build", + "build": "react-scripts build", "test": "mate-scripts test -l", "lint-js": "mate-scripts lint -j", "lint-css": "mate-scripts lint -s", @@ -46,7 +46,7 @@ "update": "mate-scripts update", "postinstall": "npm run update && cypress verify", "predeploy": "npm run build", - "deploy": "mate-scripts deploy" + "deploy": "gh-pages -d build" }, "browserslist": { "production": [ @@ -68,4 +68,4 @@ "cypress": true } } -} \ No newline at end of file +} diff --git a/src/App.jsx b/src/App.jsx index ff3285812..f567626c3 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,248 +1,278 @@ /* eslint-disable jsx-a11y/accessible-emoji */ -import React from 'react'; +import React, { useState } from 'react'; +import cn from 'classnames'; import './App.scss'; -// import usersFromServer from './api/users'; -// import categoriesFromServer from './api/categories'; -// import productsFromServer from './api/products'; - -// const products = productsFromServer.map((product) => { -// const category = null; // find by product.categoryId -// const user = null; // find by category.ownerId - -// return null; -// }); - -export const App = () => ( -
-
-

Product Categories

- -
-