Skip to content

Commit fc7d18b

Browse files
committed
Add styles for cost display
1 parent f9cf3ea commit fc7d18b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/components/CostDisplay/CostDisplay.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import styles from './CostDisplay.module.css';
44

55
const CostDisplay = ({ cost }) => (
66
<div className={styles.CostDisplay} data-testid="CostDisplay">
7-
Cost: {cost}
7+
Cost: <div id="cost-value">{cost}</div>
88
</div>
99
);
1010

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
.CostDisplay {
2+
text-align: center;
3+
}
4+
#cost-value {
5+
font-weight: bold;
26
}

0 commit comments

Comments
 (0)