Skip to content

Commit 836b7d3

Browse files
committed
fix: fix priceitem layout
1 parent 95cea9a commit 836b7d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/price/PriceItem.jsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ const Text = styled.div`
3939
width: 100px;
4040
font-size: 20px;
4141
font-weight: 800;
42-
color: #8fa86a;
42+
color: #d53d3d;
4343
}
4444
4545
&.decrement {
4646
width: 100px;
4747
font-size: 20px;
4848
font-weight: 800;
49-
color: #d53d3d;
49+
color: #8fa86a;
5050
}
5151
5252
&.count {
@@ -124,7 +124,7 @@ function PriceItem(props) {
124124
};
125125

126126
const getTextClassproduct_Name = (price) => {
127-
return price > 0 ? "increment" : "decrement";
127+
return price > 100 ? "increment" : "decrement";
128128
};
129129

130130
return (

0 commit comments

Comments
 (0)