WebJamApps/CollegeLutheran

View on GitHub
src/containers/Calendar/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import { Component } from 'react';
import DefaultCalendarContent from './CalendarContent';
import commonUtils from '../../lib/commonUtils';

export default class Calendar extends Component {
  commonUtils: { setTitleAndScroll: (pageTitle: string, width: number) => void; };

  constructor(props: Readonly<Calendar>) {
    super(props);
    this.commonUtils = commonUtils;
  }

  componentDidMount(): void { this.commonUtils.setTitleAndScroll('Church Calendar', window.screen.width); }

  render(): JSX.Element { return (<DefaultCalendarContent />); }
}