tracker-connect
This commit is contained in:
@ -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>
|
||||
)
|
||||
};
|
||||
|
@ -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));
|
||||
|
@ -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>
|
||||
|
@ -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}>
|
||||
Создать
|
||||
|
Reference in New Issue
Block a user