added Clip header

This commit is contained in:
Bernt Christian Egeland 2021-08-22 21:38:50 +02:00
parent e2a76e4bfe
commit 0d60bad752
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ export default function Event({ eventId, close, scrollIntoView }) {
useEffect(() => {
// Call Events.js scroll when this event has been mounted.
scrollIntoView(eventId);
() => scrollIntoView(eventId);
}, []);
const handleClickDelete = () => {
@ -92,6 +92,7 @@ export default function Event({ eventId, close, scrollIntoView }) {
<div className="absolute w-full top-10 left-0">
{data.has_clip ? (
<Fragment>
<Heading size="lg">Clip</Heading>
<VideoPlayer
options={{
sources: [

View File

@ -73,7 +73,7 @@ export default function Events({ path: pathname, limit = API_LIMIT } = {}) {
const [searchString, setSearchString] = useState(`${defaultSearchString(limit)}&${initialSearchParams.toString()}`);
const { data, status, deletedId } = useEvents(searchString);
let scrollToRef = {};
const scrollToRef = {};
useEffect(() => {
if (data && !(searchString in searchStrings)) {
dispatch({ type: 'APPEND_EVENTS', payload: data, meta: { searchString } });