From 13954fc539ea0782dda4d88ed126f14f8ef2ab76 Mon Sep 17 00:00:00 2001 From: SD Date: Wed, 27 Mar 2024 18:45:40 +0400 Subject: [PATCH] fix: fix dayjs plugin --- src/components/Account/SessionsTabs.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/Account/SessionsTabs.tsx b/src/components/Account/SessionsTabs.tsx index 9356aaa..f9c5ca1 100644 --- a/src/components/Account/SessionsTabs.tsx +++ b/src/components/Account/SessionsTabs.tsx @@ -3,7 +3,6 @@ import React, { useCallback, useEffect, useState } from 'react'; import styled from 'styled-components'; import * as dayjs from 'dayjs'; -import * as isToday from 'dayjs/plugin/isToday'; import 'dayjs/locale/ru'; import 'dayjs/locale/en'; import 'dayjs/locale/de'; @@ -16,8 +15,6 @@ import { AUTH_TOKEN_KEY, AUTH_USER } from '../../constants/common'; import { getRecentSessions, getRequestedSessions, getUpcomingSessions } from '../../actions/profile'; import { Session, Sessions, SessionType } from '../../types/sessions'; -dayjs.extend(isToday); - const Tab = styled.div``; export const SessionsTabs = ({ intlConfig, locale }: { intlConfig: Record, locale: string }) => { @@ -83,7 +80,7 @@ export const SessionsTabs = ({ intlConfig, locale }: { intlConfig: Record