tracker-connect

This commit is contained in:
2023-05-05 00:50:48 +03:00
parent 2fec7f4d28
commit d8a7eb55f5
8 changed files with 177 additions and 129 deletions

View File

@ -3,10 +3,10 @@ import './loader.scss'
import React from "react";
export const Loader = ({width = 50, height = 50}) => {
export const Loader = ({width = 50, height = 50, style}) => {
return (
<div className='loader'>
<SVGLoader type='Circles' color='#fff' height={height} width={width}/>
<SVGLoader type='Circles' color={style ? style : `#fff`} height={height} width={width}/>
</div>
)
};

View File

@ -43,7 +43,7 @@ export const ProjectTiket = ({ project, index }) => {
method: "PUT",
data: {
project_id: project.id,
status: 0,
status: 10,
},
}).then((res) => {
dispatch(deleteProject(project));

View File

@ -62,6 +62,9 @@ export const ModalAdd = ({ active, setActive, selectedTab, defautlInput }) => {
setDescriptionTicket("");
}
function editProject() {
}
function getModal() {
switch (modalType) {
case "createColumn":
@ -156,7 +159,7 @@ export const ModalAdd = ({ active, setActive, selectedTab, defautlInput }) => {
></input>
</div>
</div>
<button className="button-add" onClick={(e) => e.preventDefault()}>
<button className="button-add" onClick={editProject}>
Сохранить
</button>
<span className="exit" onClick={() => setActive(false)}></span>

View File

@ -21,7 +21,8 @@ export const ModalCreate = ({ active, setActive, title }) => {
status: 1,
}
}).then((res) => {
dispatch(setProject(res));
const result = {...res, columns: []}
dispatch(setProject(result));
setActive(false);
setInputValue("");
})
@ -44,7 +45,7 @@ export const ModalCreate = ({ active, setActive, title }) => {
className="name-project"
value={inputValue}
onChange={(e) => setInputValue(e.target.value)}
></input>
/>
</div>
<button className="create-project" onClick={createName}>
Создать