refactor: replace moment with dayjs

This commit is contained in:
Nurseiit Abdimomyn
2020-10-02 01:17:43 +06:00
committed by Jordan Knott
parent a288e06123
commit 92493deedf
9 changed files with 54 additions and 156 deletions

View File

@ -17,7 +17,7 @@ import dark from 'shared/utils/editorTheme';
import styled from 'styled-components';
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
import moment from 'moment';
import dayjs from 'dayjs';
import Task from 'shared/icons/Task';
import {
@ -182,7 +182,7 @@ const TaskDetails: React.FC<TaskDetailsProps> = ({
}}
>
{task.dueDate ? (
<SidebarButtonText>{moment(task.dueDate).format('MMM D [at] h:mm A')}</SidebarButtonText>
<SidebarButtonText>{dayjs(task.dueDate).format('MMM D [at] h:mm A')}</SidebarButtonText>
) : (
<SidebarButtonText>No due date</SidebarButtonText>
)}