From 55a49fab9ddfdf58e1712a5b3b39c7ede7c93e9c Mon Sep 17 00:00:00 2001
From: josh-willis-arcadis
<168561922+josh-willis-arcadis@users.noreply.github.com>
Date: Thu, 7 Nov 2024 15:31:23 -0600
Subject: [PATCH] refactor(status-badge): use implicit return syntax
---
lib/components/util/status-badge.tsx | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/lib/components/util/status-badge.tsx b/lib/components/util/status-badge.tsx
index 71de7930d..b6004d639 100644
--- a/lib/components/util/status-badge.tsx
+++ b/lib/components/util/status-badge.tsx
@@ -39,15 +39,13 @@ function getStatusLabel(status?: string) {
}
/** Renders a badge to convey status such as 'verified', 'pending'. */
-const StatusBadge = ({ status }: Props): JSX.Element => {
- return (
- <>
- {/* Surround badge with invisible parentheses for no-CSS and screen readers */}
- (
- {getStatusLabel(status)}
- )
- >
- )
-}
+const StatusBadge = ({ status }: Props): JSX.Element => (
+ <>
+ {/* Surround badge with invisible parentheses for no-CSS and screen readers */}
+ (
+ {getStatusLabel(status)}
+ )
+ >
+)
export default StatusBadge