Added payment list to jobs BOD-146
This commit is contained in:
@@ -2,9 +2,13 @@ import React from "react";
|
||||
import Moment from "react-moment";
|
||||
|
||||
export function DateFormatter(props) {
|
||||
return <Moment format="MM/DD/YYYY">{props.children || null}</Moment>;
|
||||
return props.children ? (
|
||||
<Moment format="MM/DD/YYYY ">{props.children}</Moment>
|
||||
) : null;
|
||||
}
|
||||
|
||||
export function DateTimeFormatter(props) {
|
||||
return <Moment format="MM/DD/YYYY @ HH:mm">{props.children || ""}</Moment>;
|
||||
return props.children ? (
|
||||
<Moment format="MM/DD/YYYY @ HH:mm">{props.children}</Moment>
|
||||
) : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user