From 1eb6cdecce91ee0e554569934b40af10bdf0edfd Mon Sep 17 00:00:00 2001 From: Kevin Tun Date: Mon, 26 Aug 2024 21:58:15 -0500 Subject: [PATCH] refactor(ui-frontpage): rename components for consistency and clarity The components DictyNewsTitle and AuthorizedEmptyNewsList have been renamed to AuthorizedDictyNewsTitle and EmptyNewsList respectively for better consistency and clarity in the codebase. This change improves readability and maintainability of the code. --- packages/ui-frontpage/src/news/AuthorizedDictyNews.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/ui-frontpage/src/news/AuthorizedDictyNews.tsx b/packages/ui-frontpage/src/news/AuthorizedDictyNews.tsx index c1e0596ee..5b7f9960c 100644 --- a/packages/ui-frontpage/src/news/AuthorizedDictyNews.tsx +++ b/packages/ui-frontpage/src/news/AuthorizedDictyNews.tsx @@ -1,8 +1,8 @@ import { Container, Grid, makeStyles } from "@material-ui/core" import { match, P } from "ts-pattern" import { useListContentByNamespaceQuery } from "dicty-graphql-schema" -import { DictyNewsTitle } from "./DictyNewsTitle" -import { AuthorizedEmptyNewsList } from "./AuthorizedEmptyNewsList" +import { AuthorizedDictyNewsTitle } from "./AuthorizedDictyNewsTitle" +import { EmptyNewsList } from "./EmptyNewsList" import { AuthorizedNewsList } from "./AuthorizedNewsList" import { AuthorizedMoreNewsLink } from "./AuthorizedMoreNewsLink" import { NewsLoader } from "./NewsLoader" @@ -48,7 +48,7 @@ const AuthorizedDictyNews = () => { wrap="nowrap" className={main}> - + {match(fetchState) @@ -58,7 +58,7 @@ const AuthorizedDictyNews = () => { listContentByNamespace: [], }, }, - () => , + () => , ) .with( { @@ -72,7 +72,7 @@ const AuthorizedDictyNews = () => { ) .with({ loading: true }, () => ) .with({ error: P.select(P.not(undefined)) }, () => ( - + )) .otherwise(() => ( <> This message should not appear.