Fix key error in tooltip
This commit is contained in:
parent
80e8f06b5c
commit
f71ce564fb
2 changed files with 3 additions and 3 deletions
|
@ -69,6 +69,7 @@ export function timestampToDateTime(timestamp: number) {
|
||||||
return str;
|
return str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Cheers :) https://overreacted.io/making-setinterval-declarative-with-react-hooks/
|
||||||
export function useInterval(callback: Function, delay: number) {
|
export function useInterval(callback: Function, delay: number) {
|
||||||
const savedCallback = useRef<Function>();
|
const savedCallback = useRef<Function>();
|
||||||
|
|
||||||
|
|
|
@ -490,10 +490,9 @@ const Showplanner: React.FC<{ timeslotId: number }> = function({ timeslotId }) {
|
||||||
.split("¬")
|
.split("¬")
|
||||||
.map((t) => t.split(/:(.+)/))
|
.map((t) => t.split(/:(.+)/))
|
||||||
.map((t) => (
|
.map((t) => (
|
||||||
<>
|
<div key={t[0]}>
|
||||||
<strong>{t[0]}:</strong> {t[1]}
|
<strong>{t[0]}:</strong> {t[1]}
|
||||||
<hr />
|
</div>
|
||||||
</>
|
|
||||||
))}
|
))}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue