Skip to content

Commit 2116eff

Browse files
committed
[polaris.shopify.com] Capitalize status on StatusBanner
1 parent 32dd822 commit 2116eff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

polaris.shopify.com/src/components/StatusBanner/StatusBanner.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ interface Props {
66
}
77

88
function StatusBanner({status: {value, message}}: Props) {
9+
const statusValue = value.charAt(0).toUpperCase() + value.slice(1);
910
return (
1011
<div className={styles.StatusBanner} data-value={value.toLowerCase()}>
11-
<h2>{value}</h2>
12+
<h2>{statusValue}</h2>
1213
<p>{message}</p>
1314
</div>
1415
);

0 commit comments

Comments
 (0)