WebJamApps/CollegeLutheran

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import commonUtils from 'src/lib/commonUtils';
import { useContext } from 'react';
import { ContentContext } from 'src/providers/Content.provider';
import { NewsContent } from './NewsContent';

export function News(): JSX.Element {
  const { news: { newsContent } } = useContext(ContentContext);
  commonUtils.setTitleAndScroll('News', window.screen.width);

  return <NewsContent books={newsContent} />;
}