From c075350fdc179657ff28095bf1f8cf9be39ca5c6 Mon Sep 17 00:00:00 2001 From: Illia Zolotukha Date: Fri, 30 Jun 2023 02:09:17 +0300 Subject: [PATCH] update Readme --- README.md | 29 ++++++++++++++++++- public/index.html | 14 --------- src/components/BoardItem/BoardItem.jsx | 7 ++--- src/components/BoardList/BoardList.jsx | 2 +- .../BoardModalWindow/BoardModalWindow.jsx | 7 +++-- .../BoxRadioBackgroundGroup.jsx | 7 +++-- .../ModalChangeColumn/ModalChangeColumn.jsx | 2 +- 7 files changed, 43 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 4fbfa8f..8e99f5b 100644 --- a/README.md +++ b/README.md @@ -1 +1,28 @@ -npm run format - форматування за prettier +This is a [React](https://react.dev/) project bootstrapped with +[`create-react-app`](https://create-react-app.dev/). + +## Getting Started + +First, run the development server: + +```bash +npm run start +``` + +Open [http://localhost:3000](http://localhost:3000) with your browser to see the +result. + +You can start editing the page by modifying `src/index.js`. The page +auto-updates as you edit the file. + +[API routes] can be accessed on +[https://taskpro.onrender.com/api-docs/#/](https://taskpro.onrender.com/api-docs/#/). + +The `src/secrvices` directory is mapped to `/*`. + +## Learn More + +To learn more about React, take a look at the following resources: + +- [React documentation](https://uk.reactjs.org/) - learn about React features. +- [Learn React](https://uk.reactjs.org/) - a React tutorial. diff --git a/public/index.html b/public/index.html index b398cb6..77438fd 100644 --- a/public/index.html +++ b/public/index.html @@ -9,21 +9,7 @@ name="description" content="Web site created using create-react-app" /> - - - TaskPro diff --git a/src/components/BoardItem/BoardItem.jsx b/src/components/BoardItem/BoardItem.jsx index 5554437..6b68915 100644 --- a/src/components/BoardItem/BoardItem.jsx +++ b/src/components/BoardItem/BoardItem.jsx @@ -17,7 +17,7 @@ export const BoardItem = ({ id, boardName, icon, - background = "default", + background = 'default', theme, onClick, isCurrent, @@ -28,14 +28,13 @@ export const BoardItem = ({ const navigate = useNavigate(); const editSubmit = async dataBoard => { - await dispatch(editBoard({ dataBoard, id })); - dispatch(getBoardById(id)); + await dispatch(editBoard({ dataBoard, id })); + dispatch(getBoardById(id)); }; const handleOpenEditModal = e => { e.stopPropagation(); setIsOpenEditModal(true); - }; const handleCloseEditModal = () => { setIsOpenEditModal(false); diff --git a/src/components/BoardList/BoardList.jsx b/src/components/BoardList/BoardList.jsx index 60f536a..f60bd7a 100644 --- a/src/components/BoardList/BoardList.jsx +++ b/src/components/BoardList/BoardList.jsx @@ -21,7 +21,7 @@ export const BoardList = ({ theme, boards, currentBoard }) => { key={shortid.generate()} boardName={title} icon={`${sprite}#${icon}`} - background={background ? background : "default"} + background={background ? background : 'default'} theme={theme} id={_id} onClick={onClick} diff --git a/src/components/BoardModalWindow/BoardModalWindow.jsx b/src/components/BoardModalWindow/BoardModalWindow.jsx index 0daafde..75f0ea5 100644 --- a/src/components/BoardModalWindow/BoardModalWindow.jsx +++ b/src/components/BoardModalWindow/BoardModalWindow.jsx @@ -11,7 +11,7 @@ import s from './BoardModalWindow.module.scss'; export const BoardModalWindow = ({ inputTitle = '', activeIcon = 'icon-project', - activeBackground = "default", + activeBackground = 'default', modalTitle, titleModalButton, onSubmit, @@ -86,7 +86,10 @@ export const BoardModalWindow = ({

)} - +