Skip to content

Commit

Permalink
fix(finefoods): price formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
alicanerdurmaz committed May 18, 2024
1 parent c1b9388 commit ac211be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const CustomerOrderHistory = ({ customer }: Props) => {
render={(amount) => {
return (
<NumberField
value={amount / 100}
value={amount}
style={{
whiteSpace: "nowrap",
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const RecentOrders: React.FC = () => {
render={(amount) => {
return (
<NumberField
value={amount / 100}
value={amount}
style={{
whiteSpace: "nowrap",
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/finefoods-antd/src/pages/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export const DashboardPage: React.FC = () => {
rightSlot={
<Flex align="center" gap={8}>
<NumberField
value={newCustomers.trend / 100}
value={newCustomers.trend}
options={{
style: "percent",
minimumFractionDigits: 2,
Expand Down
2 changes: 1 addition & 1 deletion examples/finefoods-antd/src/pages/orders/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const OrderList = () => {
currency: "USD",
style: "currency",
}}
value={value / 100}
value={value}
/>
);
}}
Expand Down

0 comments on commit ac211be

Please sign in to comment.