Skip to content

Commit

Permalink
Update index.tsx (#12007)
Browse files Browse the repository at this point in the history
  • Loading branch information
amoore108 authored Sep 25, 2024
1 parent 7c89980 commit 077731c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/routes/article/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
} from '#app/routes/utils/regex';
import {
ARTICLE_PAGE,
CORRESPONDENT_STORY_PAGE,
MEDIA_ARTICLE_PAGE,
MEDIA_ASSET_PAGE,
ERROR_PAGE,
Expand All @@ -24,6 +25,7 @@ import getInitialData from './getInitialData';

type SupportedPageTypes =
| typeof ARTICLE_PAGE
| typeof CORRESPONDENT_STORY_PAGE
| typeof STORY_PAGE
| typeof PHOTO_GALLERY_PAGE
| typeof MEDIA_ARTICLE_PAGE
Expand All @@ -39,6 +41,7 @@ const ArticleVariation = (props: { pageData: Article }) => {

const PageType = {
[ARTICLE_PAGE]: ArticlePage,
[CORRESPONDENT_STORY_PAGE]: ArticlePage,
[STORY_PAGE]: ArticlePage,
[PHOTO_GALLERY_PAGE]: ArticlePage,
[MEDIA_ARTICLE_PAGE]: MediaArticlePage,
Expand Down

0 comments on commit 077731c

Please sign in to comment.