console logi
This commit is contained in:
parent
0d433c12ad
commit
b7424826ad
@ -98,11 +98,6 @@ export const Administrator = () => {
|
|||||||
const [endSecondDate, setEndSecondDate] = useState<Date | null>(null);
|
const [endSecondDate, setEndSecondDate] = useState<Date | null>(null);
|
||||||
const [loading, setLoading] = useState(false);
|
const [loading, setLoading] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (startFirstDate !== null) {
|
|
||||||
console.log(format(startFirstDate, 'dd.MM.yyyy'));
|
|
||||||
}
|
|
||||||
}, [startFirstDate]);
|
|
||||||
|
|
||||||
const uploadFile = async (event: React.FormEvent<HTMLFormElement>) => {
|
const uploadFile = async (event: React.FormEvent<HTMLFormElement>) => {
|
||||||
const action = (key: any) => (
|
const action = (key: any) => (
|
||||||
@ -147,7 +142,6 @@ export const Administrator = () => {
|
|||||||
variant: 'success',
|
variant: 'success',
|
||||||
action,
|
action,
|
||||||
});
|
});
|
||||||
console.log(response);
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
enqueueSnackbar('Zapisywanie planu nie powiodło się', {
|
enqueueSnackbar('Zapisywanie planu nie powiodło się', {
|
||||||
variant: 'error',
|
variant: 'error',
|
||||||
|
@ -70,7 +70,6 @@ export const SchedulerHistoryNavigation = ({
|
|||||||
<StyledButton
|
<StyledButton
|
||||||
direction="left"
|
direction="left"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
console.log('left clicked');
|
|
||||||
SubstractCurrentTimetable(-1);
|
SubstractCurrentTimetable(-1);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@ -80,7 +79,6 @@ export const SchedulerHistoryNavigation = ({
|
|||||||
<StyledButton
|
<StyledButton
|
||||||
direction="right"
|
direction="right"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
console.log('right clicked');
|
|
||||||
AddCurrentTimetable(1);
|
AddCurrentTimetable(1);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
@ -22,20 +22,10 @@ test('input should display default placeholder for student', async () => {
|
|||||||
const { getByPlaceholderText, getByText, debug } = customRender(<Topbar handleTransfer={() => {}} />);
|
const { getByPlaceholderText, getByText, debug } = customRender(<Topbar handleTransfer={() => {}} />);
|
||||||
setTimeout(()=>{const input = getByPlaceholderText('Wyszukaj przedmioty...');
|
setTimeout(()=>{const input = getByPlaceholderText('Wyszukaj przedmioty...');
|
||||||
expect(input).toBeInTheDocument();},2000);
|
expect(input).toBeInTheDocument();},2000);
|
||||||
// fireEvent.change(input, { target: { value: '122' } });
|
|
||||||
// console.log(debug());
|
|
||||||
// const textNode = await waitForElement(() => getByText('asdasdsa'));
|
|
||||||
// console.log(debug());
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
test('input should display changed value', async () => {
|
test('input should display changed value', async () => {
|
||||||
const { getByPlaceholderText, getByText, debug } = customRender(<Topbar handleTransfer={() => {}} />);
|
const { getByPlaceholderText, getByText, debug } = customRender(<Topbar handleTransfer={() => {}} />);
|
||||||
setTimeout(()=>{ const input = getByPlaceholderText('Wyszukaj przedmioty...');
|
setTimeout(()=>{ const input = getByPlaceholderText('Wyszukaj przedmioty...');
|
||||||
fireEvent.change(input, { target: { value: '122' } });expect(input.value).toBe("122");},2000);
|
fireEvent.change(input, { target: { value: '122' } });expect(input.value).toBe("122");},2000);
|
||||||
|
|
||||||
|
|
||||||
// console.log(debug());
|
|
||||||
// console.log(debug());
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -220,7 +220,6 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => {
|
|||||||
const { data } = await axiosInstance.get<Array<TimetableHistory> | []>(
|
const { data } = await axiosInstance.get<Array<TimetableHistory> | []>(
|
||||||
`${process.env.REACT_APP_API_URL}/api/v1/commisions/user/${studentId}?groups=true`,
|
`${process.env.REACT_APP_API_URL}/api/v1/commisions/user/${studentId}?groups=true`,
|
||||||
);
|
);
|
||||||
console.log('data is mordo: ', data);
|
|
||||||
setTimetableHistory(data);
|
setTimetableHistory(data);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
@ -264,7 +263,6 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.log('baskeeeeeet: ', basket);
|
|
||||||
setHistoryBasket(basket);
|
setHistoryBasket(basket);
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -277,8 +275,6 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => {
|
|||||||
}, 600);
|
}, 600);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
console.log("123,",userID,courses,basket)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<coursesContext.Provider
|
<coursesContext.Provider
|
||||||
value={{
|
value={{
|
||||||
|
Loading…
Reference in New Issue
Block a user