Package cleanup & transition to latest apollo.
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
import React from "react";
|
||||
import moment from "moment";
|
||||
import Moment from "react-moment";
|
||||
import { Tooltip } from "antd";
|
||||
import moment from "moment";
|
||||
import React from "react";
|
||||
|
||||
export function DateFormatter(props) {
|
||||
return props.children ? (
|
||||
<Moment className={props && props.className} format="MM/DD/YYYY ">
|
||||
{props.children}
|
||||
</Moment>
|
||||
) : null;
|
||||
return props.children ? moment(props.children).format("MM/DD/YYYY") : null;
|
||||
}
|
||||
|
||||
export function DateTimeFormatter(props) {
|
||||
return props.children ? (
|
||||
<Moment format="MM/DD/YYYY hh:mm a">{props.children}</Moment>
|
||||
) : null;
|
||||
return props.children
|
||||
? moment(props.children).format("MM/DD/YYYY hh:mm a")
|
||||
: null;
|
||||
}
|
||||
|
||||
export function TimeAgoFormatter(props) {
|
||||
|
||||
Reference in New Issue
Block a user