Complete refactor of jobs detail screen.
This commit is contained in:
13
client/src/utils/CurrencyFormatter.jsx
Normal file
13
client/src/utils/CurrencyFormatter.jsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from "react";
|
||||
import NumberFormat from "react-number-format";
|
||||
|
||||
export default function CurrencyFormatter(props) {
|
||||
return (
|
||||
<NumberFormat
|
||||
thousandSeparator={true}
|
||||
prefix={"$"}
|
||||
value={props.children}
|
||||
displayType={"text"}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user