chore: remove debug console.log statements
This commit is contained in:
parent
6761d4571e
commit
2e9767f1a0
@ -87,9 +87,7 @@ type AddUserPopupProps = {
|
|||||||
const AddUserPopup: React.FC<AddUserPopupProps> = ({ onAddUser }) => {
|
const AddUserPopup: React.FC<AddUserPopupProps> = ({ onAddUser }) => {
|
||||||
const { register, handleSubmit, errors, setValue, control } = useForm<CreateUserData>();
|
const { register, handleSubmit, errors, setValue, control } = useForm<CreateUserData>();
|
||||||
|
|
||||||
console.log(errors);
|
|
||||||
const createUser = (data: CreateUserData) => {
|
const createUser = (data: CreateUserData) => {
|
||||||
console.log(data);
|
|
||||||
onAddUser(data);
|
onAddUser(data);
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
@ -187,8 +185,6 @@ const AdminRoute = () => {
|
|||||||
const cacheData: any = client.readQuery({
|
const cacheData: any = client.readQuery({
|
||||||
query: UsersDocument,
|
query: UsersDocument,
|
||||||
});
|
});
|
||||||
console.log(cacheData);
|
|
||||||
console.log(createData);
|
|
||||||
const newData = produce(cacheData, (draftState: any) => {
|
const newData = produce(cacheData, (draftState: any) => {
|
||||||
draftState.users = [...draftState.users, { ...createData.data.createUserAccount }];
|
draftState.users = [...draftState.users, { ...createData.data.createUserAccount }];
|
||||||
});
|
});
|
||||||
@ -217,8 +213,6 @@ const AdminRoute = () => {
|
|||||||
canInviteUser={user.roles.org == 'admin'}
|
canInviteUser={user.roles.org == 'admin'}
|
||||||
onInviteUser={() => {}}
|
onInviteUser={() => {}}
|
||||||
onUpdateUserPassword={(user, password) => {
|
onUpdateUserPassword={(user, password) => {
|
||||||
console.log(user);
|
|
||||||
console.log(password);
|
|
||||||
hidePopup();
|
hidePopup();
|
||||||
}}
|
}}
|
||||||
onDeleteUser={(userID, newOwnerID) => {
|
onDeleteUser={(userID, newOwnerID) => {
|
||||||
|
@ -177,9 +177,6 @@ export const ProjectPopup: React.FC<ProjectPopupProps> = ({ history, name, proje
|
|||||||
query: GetProjectsDocument,
|
query: GetProjectsDocument,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(cacheData);
|
|
||||||
console.log(deleteData);
|
|
||||||
|
|
||||||
const newData = produce(cacheData, (draftState: any) => {
|
const newData = produce(cacheData, (draftState: any) => {
|
||||||
draftState.projects = draftState.projects.filter(
|
draftState.projects = draftState.projects.filter(
|
||||||
(project: any) => project.id !== deleteData.data.deleteProject.project.id,
|
(project: any) => project.id !== deleteData.data.deleteProject.project.id,
|
||||||
@ -253,11 +250,9 @@ const GlobalTopNavbar: React.FC<GlobalTopNavbarProps> = ({
|
|||||||
onRemoveFromBoard,
|
onRemoveFromBoard,
|
||||||
nameOnly,
|
nameOnly,
|
||||||
}) => {
|
}) => {
|
||||||
console.log(popupContent);
|
|
||||||
const { user, setUserRoles, setUser } = useCurrentUser();
|
const { user, setUserRoles, setUser } = useCurrentUser();
|
||||||
const { loading, data } = useMeQuery({
|
const { loading, data } = useMeQuery({
|
||||||
onCompleted: data => {
|
onCompleted: data => {
|
||||||
console.log('me query has completed!');
|
|
||||||
if (user && user.roles) {
|
if (user && user.roles) {
|
||||||
setUserRoles({
|
setUserRoles({
|
||||||
org: user.roles.org,
|
org: user.roles.org,
|
||||||
@ -311,9 +306,7 @@ const GlobalTopNavbar: React.FC<GlobalTopNavbarProps> = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const onOpenSettings = ($target: React.RefObject<HTMLElement>) => {
|
const onOpenSettings = ($target: React.RefObject<HTMLElement>) => {
|
||||||
console.log('maybe firing popup');
|
|
||||||
if (popupContent) {
|
if (popupContent) {
|
||||||
console.log('showing popup');
|
|
||||||
showPopup($target, popupContent, 185);
|
showPopup($target, popupContent, 185);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -36,7 +36,6 @@ const Projects = () => {
|
|||||||
ref={$fileUpload}
|
ref={$fileUpload}
|
||||||
onChange={e => {
|
onChange={e => {
|
||||||
if (e.target.files) {
|
if (e.target.files) {
|
||||||
console.log(e.target.files[0]);
|
|
||||||
const fileData = new FormData();
|
const fileData = new FormData();
|
||||||
fileData.append('file', e.target.files[0]);
|
fileData.append('file', e.target.files[0]);
|
||||||
const accessToken = getAccessToken();
|
const accessToken = getAccessToken();
|
||||||
|
@ -244,14 +244,12 @@ const ProjectBoard: React.FC<ProjectBoardProps> = ({ projectID, onCardLabelClick
|
|||||||
const [toggleTaskLabel] = useToggleTaskLabelMutation({
|
const [toggleTaskLabel] = useToggleTaskLabelMutation({
|
||||||
onCompleted: newTaskLabel => {
|
onCompleted: newTaskLabel => {
|
||||||
taskLabelsRef.current = newTaskLabel.toggleTaskLabel.task.labels;
|
taskLabelsRef.current = newTaskLabel.toggleTaskLabel.task.labels;
|
||||||
console.log(taskLabelsRef.current);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const onCreateTask = (taskGroupID: string, name: string) => {
|
const onCreateTask = (taskGroupID: string, name: string) => {
|
||||||
if (data) {
|
if (data) {
|
||||||
const taskGroup = data.findProject.taskGroups.find(t => t.id === taskGroupID);
|
const taskGroup = data.findProject.taskGroups.find(t => t.id === taskGroupID);
|
||||||
console.log(`taskGroup ${taskGroup}`);
|
|
||||||
if (taskGroup) {
|
if (taskGroup) {
|
||||||
let position = 65535;
|
let position = 65535;
|
||||||
if (taskGroup.tasks.length !== 0) {
|
if (taskGroup.tasks.length !== 0) {
|
||||||
@ -262,7 +260,6 @@ const ProjectBoard: React.FC<ProjectBoardProps> = ({ projectID, onCardLabelClick
|
|||||||
position = Math.ceil(lastTask.position) * 2 + 1;
|
position = Math.ceil(lastTask.position) * 2 + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(`position ${position}`);
|
|
||||||
createTask({
|
createTask({
|
||||||
variables: { taskGroupID, name, position },
|
variables: { taskGroupID, name, position },
|
||||||
optimisticResponse: {
|
optimisticResponse: {
|
||||||
|
@ -144,14 +144,11 @@ const Details: React.FC<DetailsProps> = ({
|
|||||||
cache =>
|
cache =>
|
||||||
produce(cache, draftCache => {
|
produce(cache, draftCache => {
|
||||||
const { prevChecklistID, checklistID, checklistItem } = response.data.updateTaskChecklistItemLocation;
|
const { prevChecklistID, checklistID, checklistItem } = response.data.updateTaskChecklistItemLocation;
|
||||||
console.log(`${checklistID} !== ${prevChecklistID}`);
|
|
||||||
if (checklistID !== prevChecklistID) {
|
if (checklistID !== prevChecklistID) {
|
||||||
const oldIdx = cache.findTask.checklists.findIndex(c => c.id === prevChecklistID);
|
const oldIdx = cache.findTask.checklists.findIndex(c => c.id === prevChecklistID);
|
||||||
const newIdx = cache.findTask.checklists.findIndex(c => c.id === checklistID);
|
const newIdx = cache.findTask.checklists.findIndex(c => c.id === checklistID);
|
||||||
console.log(`oldIdx ${oldIdx} newIdx ${newIdx}`);
|
|
||||||
if (oldIdx > -1 && newIdx > -1) {
|
if (oldIdx > -1 && newIdx > -1) {
|
||||||
const item = cache.findTask.checklists[oldIdx].items.find(item => item.id === checklistItem.id);
|
const item = cache.findTask.checklists[oldIdx].items.find(item => item.id === checklistItem.id);
|
||||||
console.log(item);
|
|
||||||
if (item) {
|
if (item) {
|
||||||
draftCache.findTask.checklists[oldIdx].items = cache.findTask.checklists[oldIdx].items.filter(
|
draftCache.findTask.checklists[oldIdx].items = cache.findTask.checklists[oldIdx].items.filter(
|
||||||
i => i.id !== checklistItem.id,
|
i => i.id !== checklistItem.id,
|
||||||
@ -195,7 +192,6 @@ const Details: React.FC<DetailsProps> = ({
|
|||||||
cache =>
|
cache =>
|
||||||
produce(cache, draftCache => {
|
produce(cache, draftCache => {
|
||||||
const { checklists } = cache.findTask;
|
const { checklists } = cache.findTask;
|
||||||
console.log(deleteData);
|
|
||||||
draftCache.findTask.checklists = checklists.filter(
|
draftCache.findTask.checklists = checklists.filter(
|
||||||
c => c.id !== deleteData.data.deleteTaskChecklist.taskChecklist.id,
|
c => c.id !== deleteData.data.deleteTaskChecklist.taskChecklist.id,
|
||||||
);
|
);
|
||||||
@ -450,10 +446,8 @@ const Details: React.FC<DetailsProps> = ({
|
|||||||
<CreateChecklistPopup
|
<CreateChecklistPopup
|
||||||
onCreateChecklist={checklistData => {
|
onCreateChecklist={checklistData => {
|
||||||
let position = 65535;
|
let position = 65535;
|
||||||
console.log(data.findTask.checklists);
|
|
||||||
if (data.findTask.checklists) {
|
if (data.findTask.checklists) {
|
||||||
const [lastChecklist] = data.findTask.checklists.slice(-1);
|
const [lastChecklist] = data.findTask.checklists.slice(-1);
|
||||||
console.log(`lastCheclist ${lastChecklist}`);
|
|
||||||
if (lastChecklist) {
|
if (lastChecklist) {
|
||||||
position = lastChecklist.position * 2 + 1;
|
position = lastChecklist.position * 2 + 1;
|
||||||
}
|
}
|
||||||
|
@ -84,7 +84,6 @@ const LabelManagerEditor: React.FC<LabelManagerEditorProps> = ({
|
|||||||
const labels = labelsRef.current ? labelsRef.current : [];
|
const labels = labelsRef.current ? labelsRef.current : [];
|
||||||
const taskLabels = taskLabelsRef && taskLabelsRef.current ? taskLabelsRef.current : [];
|
const taskLabels = taskLabelsRef && taskLabelsRef.current ? taskLabelsRef.current : [];
|
||||||
const [currentTaskLabels, setCurrentTaskLabels] = useState(taskLabels);
|
const [currentTaskLabels, setCurrentTaskLabels] = useState(taskLabels);
|
||||||
console.log(taskLabels);
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Popup title="Labels" tab={0} onClose={() => hidePopup()}>
|
<Popup title="Labels" tab={0} onClose={() => hidePopup()}>
|
||||||
|
@ -127,7 +127,6 @@ const Project = () => {
|
|||||||
const [toggleTaskLabel] = useToggleTaskLabelMutation({
|
const [toggleTaskLabel] = useToggleTaskLabelMutation({
|
||||||
onCompleted: newTaskLabel => {
|
onCompleted: newTaskLabel => {
|
||||||
taskLabelsRef.current = newTaskLabel.toggleTaskLabel.task.labels;
|
taskLabelsRef.current = newTaskLabel.toggleTaskLabel.task.labels;
|
||||||
console.log(taskLabelsRef.current);
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -176,8 +175,6 @@ const Project = () => {
|
|||||||
FindProjectDocument,
|
FindProjectDocument,
|
||||||
cache =>
|
cache =>
|
||||||
produce(cache, draftCache => {
|
produce(cache, draftCache => {
|
||||||
console.log(cache);
|
|
||||||
console.log(response);
|
|
||||||
draftCache.findProject.members = cache.findProject.members.filter(
|
draftCache.findProject.members = cache.findProject.members.filter(
|
||||||
m => m.id !== response.data.deleteProjectMember.member.id,
|
m => m.id !== response.data.deleteProjectMember.member.id,
|
||||||
);
|
);
|
||||||
@ -208,8 +205,6 @@ const Project = () => {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (data) {
|
if (data) {
|
||||||
console.log(data.findProject);
|
|
||||||
|
|
||||||
labelsRef.current = data.findProject.labels;
|
labelsRef.current = data.findProject.labels;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -261,7 +261,6 @@ const Projects = () => {
|
|||||||
|
|
||||||
const colors = ['#e362e3', '#7a6ff0', '#37c5ab', '#aa62e3', '#e8384f'];
|
const colors = ['#e362e3', '#7a6ff0', '#37c5ab', '#aa62e3', '#e8384f'];
|
||||||
if (data && user) {
|
if (data && user) {
|
||||||
console.log(user);
|
|
||||||
const { projects, teams, organizations } = data;
|
const { projects, teams, organizations } = data;
|
||||||
const organizationID = organizations[0].id ?? null;
|
const organizationID = organizations[0].id ?? null;
|
||||||
const projectTeams = teams
|
const projectTeams = teams
|
||||||
@ -283,7 +282,6 @@ const Projects = () => {
|
|||||||
}),
|
}),
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
console.log(projectTeams);
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<GlobalTopNavbar onSaveProjectName={() => {}} projectID={null} name={null} />
|
<GlobalTopNavbar onSaveProjectName={() => {}} projectID={null} name={null} />
|
||||||
|
@ -495,7 +495,6 @@ const Members: React.FC<MembersProps> = ({ teamID }) => {
|
|||||||
users={data.users}
|
users={data.users}
|
||||||
teamMembers={data.findTeam.members}
|
teamMembers={data.findTeam.members}
|
||||||
onAddTeamMember={userID => {
|
onAddTeamMember={userID => {
|
||||||
console.log(`team: ${userID}`);
|
|
||||||
createTeamMember({ variables: { userID, teamID } });
|
createTeamMember({ variables: { userID, teamID } });
|
||||||
}}
|
}}
|
||||||
/>,
|
/>,
|
||||||
|
@ -221,7 +221,6 @@ const TeamRoleManagerPopup: React.FC<TeamRoleManagerPopupProps> = ({
|
|||||||
disabled={!(!hasOwned || (hasOwned && deleteUser))}
|
disabled={!(!hasOwned || (hasOwned && deleteUser))}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (onDeleteUser) {
|
if (onDeleteUser) {
|
||||||
console.log(`${!hasOwned} || (${hasOwned} && ${deleteUser})`);
|
|
||||||
if (!hasOwned || (hasOwned && deleteUser)) {
|
if (!hasOwned || (hasOwned && deleteUser)) {
|
||||||
onDeleteUser(user.id, deleteUser ? deleteUser.value : null);
|
onDeleteUser(user.id, deleteUser ? deleteUser.value : null);
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,6 @@ export const Default = () => {
|
|||||||
]);
|
]);
|
||||||
}}
|
}}
|
||||||
onDeleteItem={itemID => {
|
onDeleteItem={itemID => {
|
||||||
console.log(`itemID ${itemID}`);
|
|
||||||
setItems(items.filter(item => item.id !== itemID));
|
setItems(items.filter(item => item.id !== itemID));
|
||||||
}}
|
}}
|
||||||
onChangeItemName={(itemID, currentName) => {
|
onChangeItemName={(itemID, currentName) => {
|
||||||
@ -138,7 +137,7 @@ export const Default = () => {
|
|||||||
key={item.id}
|
key={item.id}
|
||||||
wrapperProps={{}}
|
wrapperProps={{}}
|
||||||
handleProps={{}}
|
handleProps={{}}
|
||||||
checklistID='id'
|
checklistID="id"
|
||||||
itemID={item.id}
|
itemID={item.id}
|
||||||
name={item.name}
|
name={item.name}
|
||||||
complete={item.complete}
|
complete={item.complete}
|
||||||
|
@ -566,9 +566,6 @@ const Checklist = React.forwardRef(
|
|||||||
$name.current.select();
|
$name.current.select();
|
||||||
}
|
}
|
||||||
}, [editting]);
|
}, [editting]);
|
||||||
useEffect(() => {
|
|
||||||
console.log($container);
|
|
||||||
}, [$container]);
|
|
||||||
return (
|
return (
|
||||||
<Wrapper ref={$container} {...wrapperProps}>
|
<Wrapper ref={$container} {...wrapperProps}>
|
||||||
<WindowTitle>
|
<WindowTitle>
|
||||||
|
@ -35,7 +35,6 @@ export const Default = () => {
|
|||||||
});
|
});
|
||||||
const $buttonRef: any = createRef();
|
const $buttonRef: any = createRef();
|
||||||
const onClick = () => {
|
const onClick = () => {
|
||||||
console.log($buttonRef.current.getBoundingClientRect());
|
|
||||||
setMenu({
|
setMenu({
|
||||||
isOpen: !menu.isOpen,
|
isOpen: !menu.isOpen,
|
||||||
left: $buttonRef.current.getBoundingClientRect().right,
|
left: $buttonRef.current.getBoundingClientRect().right,
|
||||||
|
@ -149,7 +149,6 @@ const DueDateManager: React.FC<DueDateManagerProps> = ({ task, onDueDateChange,
|
|||||||
];
|
];
|
||||||
const { register, handleSubmit, errors, setValue, setError, formState, control } = useForm<DueDateFormData>();
|
const { register, handleSubmit, errors, setValue, setError, formState, control } = useForm<DueDateFormData>();
|
||||||
const saveDueDate = (data: any) => {
|
const saveDueDate = (data: any) => {
|
||||||
console.log(data);
|
|
||||||
const newDate = moment(`${data.endDate} ${data.endTime}`, 'YYYY-MM-DD h:mm A');
|
const newDate = moment(`${data.endDate} ${data.endTime}`, 'YYYY-MM-DD h:mm A');
|
||||||
if (newDate.isValid()) {
|
if (newDate.isValid()) {
|
||||||
onDueDateChange(task, newDate.toDate());
|
onDueDateChange(task, newDate.toDate());
|
||||||
@ -168,7 +167,6 @@ const DueDateManager: React.FC<DueDateManagerProps> = ({ task, onDueDateChange,
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
console.log(`textStartDate ${textStartDate}`);
|
|
||||||
return (
|
return (
|
||||||
<Wrapper>
|
<Wrapper>
|
||||||
<Form onSubmit={handleSubmit(saveDueDate)}>
|
<Form onSubmit={handleSubmit(saveDueDate)}>
|
||||||
|
@ -60,15 +60,7 @@ export const Default = () => {
|
|||||||
onExtraMenuOpen={action('extra menu open')}
|
onExtraMenuOpen={action('extra menu open')}
|
||||||
>
|
>
|
||||||
<ListCards>
|
<ListCards>
|
||||||
<CardComposer
|
<CardComposer onClose={() => {}} onCreateCard={name => {}} isOpen={false} />
|
||||||
onClose={() => {
|
|
||||||
console.log('close!');
|
|
||||||
}}
|
|
||||||
onCreateCard={name => {
|
|
||||||
console.log(name);
|
|
||||||
}}
|
|
||||||
isOpen={false}
|
|
||||||
/>
|
|
||||||
</ListCards>
|
</ListCards>
|
||||||
</List>
|
</List>
|
||||||
);
|
);
|
||||||
@ -85,15 +77,7 @@ export const WithCardComposer = () => {
|
|||||||
onExtraMenuOpen={action('extra menu open')}
|
onExtraMenuOpen={action('extra menu open')}
|
||||||
>
|
>
|
||||||
<ListCards>
|
<ListCards>
|
||||||
<CardComposer
|
<CardComposer onClose={() => {}} onCreateCard={name => {}} isOpen />
|
||||||
onClose={() => {
|
|
||||||
console.log('close!');
|
|
||||||
}}
|
|
||||||
onCreateCard={name => {
|
|
||||||
console.log(name);
|
|
||||||
}}
|
|
||||||
isOpen
|
|
||||||
/>
|
|
||||||
</ListCards>
|
</ListCards>
|
||||||
</List>
|
</List>
|
||||||
);
|
);
|
||||||
@ -124,15 +108,7 @@ export const WithCard = () => {
|
|||||||
checklists={{ complete: 1, total: 4 }}
|
checklists={{ complete: 1, total: 4 }}
|
||||||
dueDate={{ isPastDue: false, formattedDate: 'Oct 26, 2020' }}
|
dueDate={{ isPastDue: false, formattedDate: 'Oct 26, 2020' }}
|
||||||
/>
|
/>
|
||||||
<CardComposer
|
<CardComposer onClose={() => {}} onCreateCard={name => {}} isOpen={false} />
|
||||||
onClose={() => {
|
|
||||||
console.log('close!');
|
|
||||||
}}
|
|
||||||
onCreateCard={name => {
|
|
||||||
console.log(name);
|
|
||||||
}}
|
|
||||||
isOpen={false}
|
|
||||||
/>
|
|
||||||
</ListCards>
|
</ListCards>
|
||||||
</List>
|
</List>
|
||||||
);
|
);
|
||||||
@ -162,15 +138,7 @@ export const WithCardAndComposer = () => {
|
|||||||
checklists={{ complete: 1, total: 4 }}
|
checklists={{ complete: 1, total: 4 }}
|
||||||
dueDate={{ isPastDue: false, formattedDate: 'Oct 26, 2020' }}
|
dueDate={{ isPastDue: false, formattedDate: 'Oct 26, 2020' }}
|
||||||
/>
|
/>
|
||||||
<CardComposer
|
<CardComposer onClose={() => {}} onCreateCard={name => {}} isOpen />
|
||||||
onClose={() => {
|
|
||||||
console.log('close!');
|
|
||||||
}}
|
|
||||||
onCreateCard={name => {
|
|
||||||
console.log(name);
|
|
||||||
}}
|
|
||||||
isOpen
|
|
||||||
/>
|
|
||||||
</ListCards>
|
</ListCards>
|
||||||
</List>
|
</List>
|
||||||
);
|
);
|
||||||
|
@ -59,7 +59,6 @@ const LabelManager = ({ labelColors, label, onLabelEdit, onLabelDelete }: Props)
|
|||||||
type="submit"
|
type="submit"
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
console.log(currentColor);
|
|
||||||
if (currentColor) {
|
if (currentColor) {
|
||||||
onLabelEdit(label ? label.id : null, currentLabel ?? '', currentColor);
|
onLabelEdit(label ? label.id : null, currentLabel ?? '', currentColor);
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,6 @@ const OpenLabelsButton = () => {
|
|||||||
const [currentLabel, setCurrentLabel] = useState('');
|
const [currentLabel, setCurrentLabel] = useState('');
|
||||||
const [labels, setLabels] = useState(labelData);
|
const [labels, setLabels] = useState(labelData);
|
||||||
const { showPopup, setTab } = usePopup();
|
const { showPopup, setTab } = usePopup();
|
||||||
console.log(labels);
|
|
||||||
return (
|
return (
|
||||||
<OpenLabelBtn
|
<OpenLabelBtn
|
||||||
ref={$buttonRef}
|
ref={$buttonRef}
|
||||||
|
@ -71,7 +71,7 @@ export const Default = () => {
|
|||||||
isComposerOpen={false}
|
isComposerOpen={false}
|
||||||
onSaveName={action('on save name')}
|
onSaveName={action('on save name')}
|
||||||
onOpenComposer={action('on open composer')}
|
onOpenComposer={action('on open composer')}
|
||||||
onExtraMenuOpen={(taskGroupID, $targetRef) => console.log(taskGroupID, $targetRef)}
|
onExtraMenuOpen={(taskGroupID, $targetRef) => {}}
|
||||||
>
|
>
|
||||||
<ListCards>
|
<ListCards>
|
||||||
<Card
|
<Card
|
||||||
@ -90,15 +90,7 @@ export const Default = () => {
|
|||||||
checklists={{ complete: 1, total: 4 }}
|
checklists={{ complete: 1, total: 4 }}
|
||||||
dueDate={{ isPastDue: false, formattedDate: 'Oct 26, 2020' }}
|
dueDate={{ isPastDue: false, formattedDate: 'Oct 26, 2020' }}
|
||||||
/>
|
/>
|
||||||
<CardComposer
|
<CardComposer onClose={() => {}} onCreateCard={name => {}} isOpen={false} />
|
||||||
onClose={() => {
|
|
||||||
console.log('close!');
|
|
||||||
}}
|
|
||||||
onCreateCard={name => {
|
|
||||||
console.log(name);
|
|
||||||
}}
|
|
||||||
isOpen={false}
|
|
||||||
/>
|
|
||||||
</ListCards>
|
</ListCards>
|
||||||
</List>
|
</List>
|
||||||
</>
|
</>
|
||||||
|
@ -269,7 +269,6 @@ const ResetPasswordTab: React.FC<ResetPasswordTabProps> = ({ onResetPassword })
|
|||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
onSubmit={handleSubmit(data => {
|
onSubmit={handleSubmit(data => {
|
||||||
console.log(`${data.password} !== ${data.password_confirm}`);
|
|
||||||
if (data.password !== data.password_confirm) {
|
if (data.password !== data.password_confirm) {
|
||||||
setError('password', { message: 'Passwords must match!', type: 'error' });
|
setError('password', { message: 'Passwords must match!', type: 'error' });
|
||||||
setError('password_confirm', { message: 'Passwords must match!', type: 'error' });
|
setError('password_confirm', { message: 'Passwords must match!', type: 'error' });
|
||||||
|
@ -247,8 +247,6 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
|
|||||||
destination,
|
destination,
|
||||||
);
|
);
|
||||||
const newPosition = getNewDraggablePosition(afterDropDraggables, destination.index);
|
const newPosition = getNewDraggablePosition(afterDropDraggables, destination.index);
|
||||||
console.log(droppedGroup);
|
|
||||||
console.log(`positiion: ${newPosition}`);
|
|
||||||
onChecklistDrop({ ...droppedGroup, position: newPosition });
|
onChecklistDrop({ ...droppedGroup, position: newPosition });
|
||||||
} else {
|
} else {
|
||||||
throw { error: 'task group can not be found' };
|
throw { error: 'task group can not be found' };
|
||||||
@ -285,7 +283,6 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
|
|||||||
position: newPosition,
|
position: newPosition,
|
||||||
};
|
};
|
||||||
onChecklistItemDrop(droppedChecklistItem.taskChecklistID, destination.droppableId, newItem);
|
onChecklistItemDrop(droppedChecklistItem.taskChecklistID, destination.droppableId, newItem);
|
||||||
console.log(newItem);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user