From a147d2440fd695499313a3bd7fecc654ed40cb47 Mon Sep 17 00:00:00 2001 From: Oksana Drozdyk Date: Fri, 13 Oct 2023 12:55:29 +0300 Subject: [PATCH] add main tasks solution --- src/App.jsx | 331 +++++------------- .../FilterByInput/FilterByInput.jsx | 33 ++ .../FilterUserList/FilterUserList.jsx | 16 + src/components/Product/Product.jsx | 31 ++ src/components/ProductList/ProductList.jsx | 5 + src/components/Table/Table.jsx | 15 + src/components/TableHead/TableHead.jsx | 53 +++ src/utils.js | 55 +++ 8 files changed, 305 insertions(+), 234 deletions(-) create mode 100644 src/components/FilterByInput/FilterByInput.jsx create mode 100644 src/components/FilterUserList/FilterUserList.jsx create mode 100644 src/components/Product/Product.jsx create mode 100644 src/components/ProductList/ProductList.jsx create mode 100644 src/components/Table/Table.jsx create mode 100644 src/components/TableHead/TableHead.jsx create mode 100644 src/utils.js diff --git a/src/App.jsx b/src/App.jsx index ff3285812..95cc66728 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,248 +1,111 @@ /* eslint-disable jsx-a11y/accessible-emoji */ -import React from 'react'; +import React, { useState } from 'react'; 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

- -
-