Opravy eslint
This commit is contained in:
parent
862614ae9d
commit
00cf8655e5
@ -84,7 +84,7 @@ function App() {
|
|||||||
}).catch(e => {
|
}).catch(e => {
|
||||||
setFailure(true);
|
setFailure(true);
|
||||||
})
|
})
|
||||||
}, [dayIndex]);
|
}, [dayIndex, auth]);
|
||||||
|
|
||||||
// Registrace socket eventů
|
// Registrace socket eventů
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@ -158,9 +158,9 @@ function App() {
|
|||||||
|
|
||||||
// Navigace mezi dny pomocí klávesových šípek
|
// Navigace mezi dny pomocí klávesových šípek
|
||||||
const handleKeyDown = useCallback((e: any) => {
|
const handleKeyDown = useCallback((e: any) => {
|
||||||
if (e.keyCode == 37 && dayIndex != null && dayIndex > 0) {
|
if (e.keyCode === 37 && dayIndex != null && dayIndex > 0) {
|
||||||
handleDayChange(dayIndex - 1);
|
handleDayChange(dayIndex - 1);
|
||||||
} else if (e.keyCode == 39 && dayIndex != null && dayIndex < 4) {
|
} else if (e.keyCode === 39 && dayIndex != null && dayIndex < 4) {
|
||||||
handleDayChange(dayIndex + 1);
|
handleDayChange(dayIndex + 1);
|
||||||
}
|
}
|
||||||
}, [dayIndex]);
|
}, [dayIndex]);
|
||||||
@ -385,7 +385,7 @@ function App() {
|
|||||||
</Row>
|
</Row>
|
||||||
<div className='content-wrapper'>
|
<div className='content-wrapper'>
|
||||||
<div className='content'>
|
<div className='content'>
|
||||||
{dayIndex == null || dayIndex >= data.todayWeekIndex && <>
|
{(dayIndex == null || dayIndex >= data.todayWeekIndex) && <>
|
||||||
<p>{`Jak to ${dayIndex == null || dayIndex === data.todayWeekIndex ? 'dnes' : 'tento den'} vidíš s obědem?`}</p>
|
<p>{`Jak to ${dayIndex == null || dayIndex === data.todayWeekIndex ? 'dnes' : 'tento den'} vidíš s obědem?`}</p>
|
||||||
<Form.Select ref={choiceRef} onChange={doAddChoice}>
|
<Form.Select ref={choiceRef} onChange={doAddChoice}>
|
||||||
<option></option>
|
<option></option>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user