From f153731cb7f3c2688ff735cacf126685fbbefbc0 Mon Sep 17 00:00:00 2001 From: Alissa Cheng <cheng@astron.nl> Date: Wed, 24 Apr 2024 13:07:10 +0200 Subject: [PATCH] chore: destruct empty states --- src/components/EmptyState.tsx | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/components/EmptyState.tsx b/src/components/EmptyState.tsx index 6103e4b..ac8216c 100644 --- a/src/components/EmptyState.tsx +++ b/src/components/EmptyState.tsx @@ -33,22 +33,22 @@ type EmptyStateProps = { content: ReactNode; }; -export const NoEntries = ({ title, content }: EmptyStateProps) => { - return <Template src={noEntries} title={title} content={content} />; -}; +export const NoEntries = ({ title, content }: EmptyStateProps) => ( + <Template src={noEntries} title={title} content={content} /> +); -export const NoResults = ({ title, content }: EmptyStateProps) => { - return <Template src={noResults} title={title} content={content} />; -}; +export const NoResults = ({ title, content }: EmptyStateProps) => ( + <Template src={noResults} title={title} content={content} /> +); -export const NoAccess = ({ title, content }: EmptyStateProps) => { - return <Template src={noAccess} title={title} content={content} />; -}; +export const NoAccess = ({ title, content }: EmptyStateProps) => ( + <Template src={noAccess} title={title} content={content} /> +); -export const NotFound = ({ title, content }: EmptyStateProps) => { - return <Template src={notFound} title={title} content={content} />; -}; +export const NotFound = ({ title, content }: EmptyStateProps) => ( + <Template src={notFound} title={title} content={content} /> +); -export const GeneralError = ({ title, content }: EmptyStateProps) => { - return <Template src={generalError} title={title} content={content} />; -}; +export const GeneralError = ({ title, content }: EmptyStateProps) => ( + <Template src={generalError} title={title} content={content} /> +); -- GitLab