From da8f9c3c731d7511b59b994e47762d6f0770b554 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 19 Nov 2022 22:53:33 +0300 Subject: Moment -> Day.js --- vnext/src/ui/Chat.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vnext/src/ui/Chat.js') diff --git a/vnext/src/ui/Chat.js b/vnext/src/ui/Chat.js index 2a3e90de..c1151daf 100644 --- a/vnext/src/ui/Chat.js +++ b/vnext/src/ui/Chat.js @@ -1,6 +1,8 @@ import { useEffect, useState, useCallback } from 'react'; import { useParams } from 'react-router-dom'; -import moment from 'moment'; +import dayjs from 'dayjs'; +import utc from 'dayjs/plugin/utc'; +dayjs.extend(utc); import PM from './PM'; import MessageInput from './MessageInput'; @@ -77,7 +79,7 @@ export default function Chat(props) { -- cgit v1.2.3