Skip to content

Commit

Permalink
update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
001elijah committed Jun 29, 2023
1 parent 38d2d03 commit c075350
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 25 deletions.
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
14 changes: 0 additions & 14 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,7 @@
name="description"
content="Web site created using create-react-app"
/>
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> -->
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link href="https://unpkg.com/[email protected]/dist/aos.css" rel="stylesheet" />
<title>TaskPro</title>

Expand Down
7 changes: 3 additions & 4 deletions src/components/BoardItem/BoardItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const BoardItem = ({
id,
boardName,
icon,
background = "default",
background = 'default',
theme,
onClick,
isCurrent,
Expand All @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/components/BoardList/BoardList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
7 changes: 5 additions & 2 deletions src/components/BoardModalWindow/BoardModalWindow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import s from './BoardModalWindow.module.scss';
export const BoardModalWindow = ({
inputTitle = '',
activeIcon = 'icon-project',
activeBackground = "default",
activeBackground = 'default',
modalTitle,
titleModalButton,
onSubmit,
Expand Down Expand Up @@ -86,7 +86,10 @@ export const BoardModalWindow = ({
</p>
)}
<BoxRadioIconGroup valueChange={setIcon} activeIcon={activeIcon} />
<BoxRadioBackgroundGroup valueChange={setBackground} activeBackground={activeBackground}/>
<BoxRadioBackgroundGroup
valueChange={setBackground}
activeBackground={activeBackground}
/>
<button className={`${s.buttonModal} ${s[theme]}`} type="submit">
<span className={`${s.iconButtonModalWrapper} ${s[theme]}`}>
<svg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import { selectorTheme } from '../../redux/Auth/authSelectors';
import { Loader } from 'components/Loader/Loader';
import s from './BoxRadioBackgroundGroup.module.scss';

export const BoxRadioBackgroundGroup = ({ valueChange, activeBackground = "default" }) => {
export const BoxRadioBackgroundGroup = ({
valueChange,
activeBackground = 'default',
}) => {
const dispatch = useDispatch();

const thumbnails = useSelector(selectBackgroundThumbnails);
Expand Down Expand Up @@ -92,5 +95,5 @@ export const BoxRadioBackgroundGroup = ({ valueChange, activeBackground = "defau

BoxRadioBackgroundGroup.propTypes = {
valueChange: PropTypes.func.isRequired,
activeBackground: PropTypes.string
activeBackground: PropTypes.string,
};
2 changes: 1 addition & 1 deletion src/components/ModalChangeColumn/ModalChangeColumn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ModalChangeColumn = ({ closeModal, columnId, cardId }) => {
}}
type="button"
>
<span className={s.title}> {title}</span>
<span className={s.title}> {title}</span>
<svg
className={clsx(s.icon, s[theme], id === columnId && s.current)}
>
Expand Down

0 comments on commit c075350

Please sign in to comment.